Siddhesh Poyarekar
9cd4747089
Add new macro IN_MODULE to identify module in which source is built
...
The current scheme to identify which module a translation unit is
built in depends on defining multiple macros IS_IN_* and also defining
NOT_IN_libc if we're building a non-libc module. In addition, there
is an IN_LIB macro that does effectively the same thing, but for
different modules (notably the systemtap probes). This macro scheme
unifies both ideas to use just one macro IN_MODULE and assign it a
value depending on the module it is being built into. If the module
is not defined, it defaults to MODULE_libc.
Patches that follow will replace uses of IS_IN_* variables with the
IS_IN() macro. libc-symbols.h has been converted already to give an
example of how such a transition will look.
Verified that there are no relevant binary changes. One source change
that will crop up repeatedly is that of nscd_stat, since it uses the
build timestamp as a constant in its logic.
* Makeconfig (in-module): Get value of libof set for the
translation unit.
(CPPFLAGS): Use $(in-module).
* Makerules: Don't suffix routine names for nonlib.
* include/libc-modules.h: New file.
* include/libc-symbols.h: Include libc-modules.h
(IS_IN): New macro to replace IS_IN_* macros.
* elf/Makefile: Set libof-* for each routine.
* elf/rtld-Rules: Likewise.
* extra-modules.mk: Likewise.
* iconv/Makefile: Likewise.
* iconvdata/Makefile: Likewise.
* locale/Makefile: Likewise.
* malloc/Makefile: Likewise.
* nss/Makefile: Likewise.
* sysdeps/gnu/Makefile: Likewise.
* sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
* sysdeps/unix/sysv/linux/Makefile: Likewise.
* sysdeps/s390/s390-64/Makefile: Likewise.
* nscd/Makefile: Set libof-* for each routine. Set CFLAGS and
CPPFLAGS for nscd instead of nonlib.
2014-11-19 12:13:54 +05:30
..
2014-11-11 16:32:34 +00:00
2014-11-12 22:39:36 +00:00
2014-11-06 15:48:44 -05:00
2014-07-29 23:27:21 -04:00
2014-10-30 19:44:31 +00:00
2014-10-23 23:18:19 -04:00
2014-11-07 01:27:16 +00:00
2014-11-06 15:48:44 -05:00
2014-10-08 23:19:32 +00:00
2014-11-07 17:39:55 +01:00
2014-11-06 15:48:44 -05:00
2014-10-22 15:20:37 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-12 23:41:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-07 01:27:16 +00:00
2014-11-06 15:48:44 -05:00
2014-01-01 22:00:23 +10:00
2014-11-07 01:27:16 +00:00
2014-11-12 22:39:36 +00:00
2014-09-20 14:05:49 +02:00
2014-11-07 01:27:16 +00:00
2014-10-30 19:44:31 +00:00
2014-09-26 17:33:04 +00:00
2014-10-20 20:28:08 +02:00
2014-01-01 22:00:23 +10:00
2012-10-18 18:50:43 +00:00
2013-06-05 20:44:03 +00:00
2014-02-20 17:50:31 +00:00
2014-10-08 23:19:32 +00:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-05-16 11:47:13 -07:00
2014-01-01 22:00:23 +10:00
2014-10-14 21:05:33 +05:30
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-09-16 17:45:03 +00:00
2014-09-16 17:45:03 +00:00
2014-11-18 11:03:20 -08:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 20:29:45 +00:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-07-02 11:10:08 -07:00
2014-02-06 08:46:20 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-09-20 14:05:49 +02:00
2014-05-13 09:49:20 -07:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-20 15:41:35 +00:00
2014-06-20 20:04:33 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-05-29 09:41:29 +05:30
2014-06-23 14:05:14 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 11:36:10 +00:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-20 15:41:35 +00:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-12 22:39:36 +00:00
2013-07-21 15:39:55 -04:00
2014-06-25 18:09:01 +00:00
2014-09-15 18:59:37 +02:00
2014-06-25 18:09:01 +00:00
2014-06-12 13:48:47 -07:00
2014-02-20 17:50:31 +00:00
2014-02-20 17:53:08 +00:00
2014-02-20 17:55:35 +00:00
2014-05-29 09:41:29 +05:30
2014-01-01 22:00:23 +10:00
2013-11-26 12:32:28 +01:00
2014-01-01 22:00:23 +10:00
2014-07-17 17:55:44 +00:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-02-08 06:39:10 -05:00
2014-01-01 22:00:23 +10:00
2014-07-15 15:23:06 -07:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-19 12:13:54 +05:30
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-10 15:07:12 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-05-16 15:45:58 -07:00
2014-07-31 11:37:48 -07:00
2014-01-01 22:00:23 +10:00
2014-10-08 23:19:32 +00:00
2014-10-08 23:19:32 +00:00
2014-01-01 22:00:23 +10:00
2013-05-03 16:33:26 -07:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-06-20 23:22:08 +00:00
2014-06-25 16:39:33 +00:00
2014-01-01 22:00:23 +10:00
2012-11-04 10:10:58 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-10 15:07:12 +01:00
2014-02-10 15:07:12 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-10-31 21:22:35 +00:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-06-12 13:48:47 -07:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-05-16 00:07:29 +02:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-09-20 13:53:44 +02:00
2013-08-27 10:34:16 -07:00
2014-07-31 14:00:33 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-10 15:07:12 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-20 17:55:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-09-12 12:28:47 +00:00
2014-06-25 20:29:45 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-05-29 09:41:29 +05:30
2014-05-29 09:41:29 +05:30
2014-01-01 22:00:23 +10:00
2014-11-01 12:26:09 +00:00
2014-07-01 15:01:24 -07:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-10 15:07:12 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-04 08:34:01 -05:00
2014-07-07 09:28:38 -07:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2013-12-22 14:49:48 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-07 01:27:16 +00:00
2014-01-01 22:00:23 +10:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00