Skip to content

Commit

Permalink
Define IN_MODULE for translation units that define NOT_IN_libc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Siddhesh Poyarekar committed Nov 24, 2014
1 parent a10178b commit 9a48485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions elf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a48485

Please sign in to comment.