From 9a4848572bec992781311995e9e5e46eb226ce97 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 20 Nov 2014 12:04:26 +0530 Subject: [PATCH] Define IN_MODULE for translation units that define NOT_IN_libc Make sure that all instances where NOT_IN_libc is defined also defines IN_MODULE to facilitate removal NOT_IN_libc in future passes. Verified that the generated code is unchanged on x86_64. * elf/Makefile (libof-sotruss-lib): Set as extramodules. --- ChangeLog | 2 ++ elf/Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index de672cf04b..f7613dbf50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2014-11-24 Siddhesh Poyarekar + * elf/Makefile (libof-sotruss-lib): Set as extramodules. + * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB. * elf/rtld-Rules (rtld-CPPFLAGS): Likewise. * extra-lib.mk (CPPFLAGS-$(lib)): Likewise. diff --git a/elf/Makefile b/elf/Makefile index 1cf4c3a401..e5598335a1 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -96,6 +96,7 @@ extra-objs += sotruss-lib.os sotruss-lib.so install-others += $(inst_auditdir)/sotruss-lib.so install-bin-script += sotruss generated += sotruss +libof-sotruss-lib = extramodules CPPFLAGS-sotruss-lib = -DNOT_IN_libc $(objpfx)sotruss-lib.so: $(objpfx)sotruss-lib.os $(build-module-asneeded)