This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] fix AIX builds


AIX builds are failing because CONFIG_LDFLAGS is getting set to
-lpthdebug which results in the library being linked before all the
object files.  The library needs to be after the object files and
CONFIG_LDFLAGS is for flags not libraries. This patch basically reverts
a previous one from a few months ago. There might be a better way to do
this but this seems to work OK for me.

2003-02-19  Martin M. Hunt  <hunt at redhat dot com>

	* configure.in: Don't set CONFIG_LDFLAGS to -lpthdebug.
	* config/powerpc/aix432.mh (NAT_CLIBS): Set to -lpthdebug.


Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.124
diff -u -r1.124 configure.in
--- configure.in	17 Feb 2003 21:56:29 -0000	1.124
+++ configure.in	20 Feb 2003 05:35:58 -0000
@@ -875,7 +875,6 @@
       if test $gdb_cv_have_aix_thread_debug = yes; then
          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
          CONFIG_LIB_OBS="${CONFIG_LIB_OBS} aix-thread.o"
-         CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
       fi
       ;;
    esac
Index: config/powerpc/aix432.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/aix432.mh,v
retrieving revision 1.3
diff -u -r1.3 aix432.mh
--- config/powerpc/aix432.mh	2 Dec 2002 15:44:22 -0000	1.3
+++ config/powerpc/aix432.mh	20 Feb 2003 05:35:58 -0000
@@ -17,3 +17,5 @@
 # This switch may be needed for some vendor compilers.
 # MH_LDFLAGS = -Wl,-bbigtoc
 
+# pthread debugging support
+NAT_CLIBS = -lpthdebug

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]