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.
This commit is contained in:
Siddhesh Poyarekar 2014-11-20 12:04:26 +05:30
parent a10178bda1
commit 9a4848572b
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2014-11-24 Siddhesh Poyarekar <siddhesh@redhat.com>
* 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.

View File

@ -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)