From d2300e844ef2de2976c2e5af762bef5906096ae3 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 19 Sep 2000 20:36:39 +0000 Subject: [PATCH] configure.in: Add AIX multithread support fragment. * configure.in: Add AIX multithread support fragment. * config/aix.mt: Define _PTHREADS in MT_CFLAGS if -pthread commandline option present. From-SVN: r36543 --- libstdc++/ChangeLog | 8 +++++++- libstdc++/config/aix.mt | 1 + libstdc++/configure.in | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 libstdc++/config/aix.mt diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index b6d1b7ea5f8..5da8c11dfa9 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,9 @@ +2000-09-19 David Edelsohn + + * configure.in: Add AIX multithread support fragment. + * config/aix.mt: Define _PTHREADS in MT_CFLAGS if -pthread + commandline option present. + 2000-08-14 Zack Weinberg * configure.in: Accept *-*-linux* not just *-*-linux-gnu*. @@ -67,7 +73,7 @@ * Makefile.in: Change "pic" to depend on $(PICFLAG), not on $(enable_shared). - * aix.ml: Build AIX-style shared library. + * config/aix.ml: Build AIX-style shared library. 2000-05-10 Jakub Jelinek diff --git a/libstdc++/config/aix.mt b/libstdc++/config/aix.mt new file mode 100644 index 00000000000..d24e14fe83e --- /dev/null +++ b/libstdc++/config/aix.mt @@ -0,0 +1 @@ +MT_CFLAGS = `case "$(CXXFLAGS)" in *-pthread* ) echo -D_PTHREADS ;; esac` diff --git a/libstdc++/configure.in b/libstdc++/configure.in index 993849f4957..ac55a7583ce 100644 --- a/libstdc++/configure.in +++ b/libstdc++/configure.in @@ -89,6 +89,8 @@ fi # Make sure the right flags are defined for multi-threading. case "${target}" in + *-*-aix*) + frags="${frags} aix.mt" ;; *-*-linux*) case "x${enable_threads}" in xyes|xposix) frags="${frags} linux.mt" ;;