1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 03:30:27 +02:00

Do not include PTHREAD_CFLAGS in CFLAGS, CFLAGS is

for the user and is often overwritten temporarily.
(GUILE_CFLAGS): New, include PTHREAD_CFLAGS here.
(GUILE_LIBS): Remove THREAD_LIBS_INSTALLED, which is unused now.
This commit is contained in:
Marius Vollmer 2004-09-24 01:24:00 +00:00
parent c5c5a1acca
commit d8b1bb9387

View file

@ -1005,7 +1005,6 @@ AC_ARG_WITH(threads, [ --with-threads thread interface],
case "$with_threads" in
"yes" | "pthread" | "pthreads" | "pthread-threads" | "")
ACX_PTHREAD(CC="$PTHREAD_CC"
CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"
SCM_I_GSC_USE_PTHREAD_THREADS=1
with_threads="pthreads",
@ -1187,9 +1186,11 @@ AC_SUBST(LIBGUILE_SRFI_SRFI_13_14_INTERFACE)
#######################################################################
dnl Tell guile-config what flags guile users should link against.
GUILE_LIBS="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
dnl Tell guile-config what flags guile users should compile and link with.
GUILE_LIBS"$LDFLAGS $LIBS"
GUILE_CFLAGS="$PTHREAD_CFLAGS"
AC_SUBST(GUILE_LIBS)
AC_SUBST(GUILE_CFLAGS)
AC_SUBST(AWK)
AC_SUBST(LIBLOBJS)