diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-02-23 17:22:41 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-04-27 15:56:33 +0000 |
commit | 121d248c1da7f2130a2edde6d158f116c89ed407 (patch) | |
tree | ad7a348a88db648da6e2df366d89fcb7b7436a1c /libcpu | |
parent | f10810fff6fda147f9c07fea0e1b33a7c4d79ad1 (diff) |
Add gnulib modules to replace missing libc functionality
This enables us to build a fully featured elfutils package on systems
with reduced C libraries, such as windows. All the modules are built
into libgnu.a, which is then linked into all binaries if
--enable-gnulib is given on the configure line.
Change-Id: I743fd22172bc85d9f10dcc3dad8eb921f462b554
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'libcpu')
-rw-r--r-- | libcpu/ChangeLog | 4 | ||||
-rw-r--r-- | libcpu/Makefile.am | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog index 7fe43455..9235b1b1 100644 --- a/libcpu/ChangeLog +++ b/libcpu/ChangeLog @@ -1,3 +1,7 @@ +2017-02-21 Ulf Hermann <ulf.hermann@qt.io> + + * Makefile.am: Link gendis agaist libgnu.a if requested. + 2017-04-20 Ulf Hermann <ulf.hermann@qt.io> * Makefile.am: Add EXEEXT to gendis. diff --git a/libcpu/Makefile.am b/libcpu/Makefile.am index 31fc906b..30a67997 100644 --- a/libcpu/Makefile.am +++ b/libcpu/Makefile.am @@ -80,11 +80,17 @@ i386_lex_no_Werror = yes libeu = ../lib/libeu.a +if USE_GNULIB +libgnu = ../libgnu/libgnu.a +else +libgnu = +endif + i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare i386_parse.o: i386_parse.c i386.mnemonics i386_parse_CFLAGS = -DNMNES="`wc -l < i386.mnemonics`" i386_lex.o: i386_parse.h -i386_gendis_LDADD = $(libeu) -lm +i386_gendis_LDADD = $(libeu) $(libgnu) -lm i386_parse.h: i386_parse.c ; |