Skip to content
Snippets Groups Projects
Commit 8ed52bec authored by Rene Brun's avatar Rene Brun
Browse files

From Axel Naumann:

Philippe fixed a typo in Makefile.win32gcc.

The -pthread switch also needs to be removed when linking. Instead of
introducing another if clause in configure I filtered it out in
wingcc_ld.sh. De we need REENTRANT here as well?

configure checks for the X libs, but not for the X headers. At least for
cygwin it has happened several times now that people ran into problems
with that: configure completes successfully, even though only X11 libs
were installed, but no headers. This patch adds a check
for X11/Xlib.h, and tells people to install X11-devel if not found.


git-svn-id: http://root.cern.ch/svn/root/trunk@9350 27541ba8-7e3a-0410-8455-c3a389f83636
parent a55667ee
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ while [ "$1" != "" ]; do
else
args="$args $1"
fi ;;
-pthread) ;;
*) args="$args $1" ;;
esac
shift
......
......@@ -32,7 +32,7 @@ COMPILER = gnu
# Linker:
LD = build/unix/wingcc_ld.sh
LDFLAGS = $(OPT) --Wl,--enable-auto-image-base -Wl,--export-all-symbols \
LDFLAGS = $(OPT) -Wl,--enable-auto-image-base -Wl,--export-all-symbols \
-L/usr/X11R6/lib \
$(EXTRA_LDFLAGS)
SOFLAGS = -shared -Wl,-soname,
......
......@@ -871,12 +871,24 @@ if test ! "$platform" = "win32"; then
/usr/local/lib /usr/local/lib/X11 /use/local/X11R6/lib \
/usr/X11/lib /usr/lib/X11R5
x11libdir=$found_dir
if test "x$found_lib" = "x" ; then
echo "`basename $0`: libX11 MUST be installed"
exit 1
fi
check_header "X11/Xlib.h" \
/usr/include /usr/X11R6/include /usr/include/X11 /usr/openwin/include \
/usr/local/include /usr/local/include/X11 /use/local/X11R6/include \
/usr/X11/include /usr/include/X11R5
x11inc=$found_hdr
x11incdir=$found_dir
if test "x$x11incdir" = "x" ; then
echo "`basename $0`: X11 headers (x11-devel) MUST be installed"
exit 1
fi
check_library "libXpm" "$enable_shared" "$xpmlibdir" \
$XPM $XPM/lib /usr/lib /usr/local/lib /usr/lib/X11 \
/usr/local/lib/X11 /usr/X11R6/lib /use/local/X11R6/lib \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment