mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-12 10:45:13 +01:00
Make CPPFLAGS, not CFLAGS, include G_THREAD_CFLAGS. CFLAGS is used while
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Make CPPFLAGS, not CFLAGS, include G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib programs would link to the threads library on some platforms. Also fixed a bug manifesting through this change.
This commit is contained in:
parent
dd0c69a4e9
commit
17344bb1e4
@ -1,3 +1,10 @@
|
|||||||
|
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Make CPPFLAGS, not CFLAGS, include
|
||||||
|
G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
|
||||||
|
programs would link to the threads library on some platforms. Also
|
||||||
|
fixed a bug manifesting through this change.
|
||||||
|
|
||||||
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Make CPPFLAGS, not CFLAGS, include
|
||||||
|
G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
|
||||||
|
programs would link to the threads library on some platforms. Also
|
||||||
|
fixed a bug manifesting through this change.
|
||||||
|
|
||||||
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Make CPPFLAGS, not CFLAGS, include
|
||||||
|
G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
|
||||||
|
programs would link to the threads library on some platforms. Also
|
||||||
|
fixed a bug manifesting through this change.
|
||||||
|
|
||||||
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Make CPPFLAGS, not CFLAGS, include
|
||||||
|
G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
|
||||||
|
programs would link to the threads library on some platforms. Also
|
||||||
|
fixed a bug manifesting through this change.
|
||||||
|
|
||||||
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Make CPPFLAGS, not CFLAGS, include
|
||||||
|
G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
|
||||||
|
programs would link to the threads library on some platforms. Also
|
||||||
|
fixed a bug manifesting through this change.
|
||||||
|
|
||||||
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Make CPPFLAGS, not CFLAGS, include
|
||||||
|
G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
|
||||||
|
programs would link to the threads library on some platforms. Also
|
||||||
|
fixed a bug manifesting through this change.
|
||||||
|
|
||||||
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* configure.in: Make CPPFLAGS, not CFLAGS, include
|
||||||
|
G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
|
||||||
|
programs would link to the threads library on some platforms. Also
|
||||||
|
fixed a bug manifesting through this change.
|
||||||
|
|
||||||
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
2002-11-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
|
||||||
|
@ -1389,7 +1389,7 @@ if test x"$have_threads" != xno; then
|
|||||||
|
|
||||||
AC_MSG_CHECKING(thread related cflags)
|
AC_MSG_CHECKING(thread related cflags)
|
||||||
AC_MSG_RESULT($G_THREAD_CFLAGS)
|
AC_MSG_RESULT($G_THREAD_CFLAGS)
|
||||||
CFLAGS="$CFLAGS $G_THREAD_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl determination of G_THREAD_LIBS
|
dnl determination of G_THREAD_LIBS
|
||||||
@ -1398,6 +1398,8 @@ dnl ******************************
|
|||||||
mutex_has_default=no
|
mutex_has_default=no
|
||||||
case $have_threads in
|
case $have_threads in
|
||||||
posix|dce)
|
posix|dce)
|
||||||
|
glib_save_CPPFLAGS="$CPPFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
|
||||||
if test x"$G_THREAD_LIBS" = x; then
|
if test x"$G_THREAD_LIBS" = x; then
|
||||||
case $host in
|
case $host in
|
||||||
*-aix*)
|
*-aix*)
|
||||||
@ -1406,8 +1408,6 @@ case $have_threads in
|
|||||||
AC_MSG_WARN($AIX_COMPILE_INFO)
|
AC_MSG_WARN($AIX_COMPILE_INFO)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
glib_save_CPPFLAGS="$CPPFLAGS"
|
|
||||||
CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
|
|
||||||
G_THREAD_LIBS=error
|
G_THREAD_LIBS=error
|
||||||
glib_save_LIBS="$LIBS"
|
glib_save_LIBS="$LIBS"
|
||||||
for thread_lib in "" pthread pthread32 pthreads thread dce; do
|
for thread_lib in "" pthread pthread32 pthreads thread dce; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user