summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-07-22 05:15:47 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-07-22 05:15:47 +0000
commiteb6ed4fe445d1d604a6deab019d547f78540127e (patch)
tree18c7330002ea33abdc97c8b95678ac518d81b708 /libpthread/nptl
parent1dfbbd5f31e77a66e8c8b6f9e40e16277eb9f39d (diff)
downloaduClibc-alpine-eb6ed4fe445d1d604a6deab019d547f78540127e.tar.bz2
uClibc-alpine-eb6ed4fe445d1d604a6deab019d547f78540127e.tar.xz
Massive clean up of makefiles with a focus on being able to compile correctly
both thread library models. Items of interest are the 'Rules.mak' changes at the top level as well as the new 'Rules.mak' for the NPTL library.
Diffstat (limited to 'libpthread/nptl')
-rw-r--r--libpthread/nptl/Rules.mak13
1 files changed, 13 insertions, 0 deletions
diff --git a/libpthread/nptl/Rules.mak b/libpthread/nptl/Rules.mak
new file mode 100644
index 000000000..c3970d235
--- /dev/null
+++ b/libpthread/nptl/Rules.mak
@@ -0,0 +1,13 @@
+#
+# These names are used for NPTL since we have to build seperate archives
+# for the static and shared objects. We export them to sub-makes.
+#
+LIBPTHREAD_STATIC_ARCHIVE := libpthread.a
+LIBPTHREAD_SHARED_ARCHIVE := libpthread-shared.a
+
+CFLAGS-NPTL := $(CFLAGS:-O0=-O2) \
+ -I$(PTDIR) \
+ -I$(TOPDIR)ldso/include \
+ -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -std=gnu99
+
+ASFLAGS-NPTL := $(filter-out -std=gnu99, $(CFLAGS-NPTL)) -D__ASSEMBLER__