diff options
Diffstat (limited to 'config/eu.am')
| -rw-r--r-- | config/eu.am | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/config/eu.am b/config/eu.am index 8fe1e259..d0ceb272 100644 --- a/config/eu.am +++ b/config/eu.am @@ -31,14 +31,17 @@ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"' AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. +if USE_GNULIB +AM_CPPFLAGS += -I$(top_srcdir)/libgnu -I$(top_builddir)/libgnu +endif # Drop the 'u' flag that automake adds by default. It is incompatible # with deterministic archives. ARFLAGS = cr -# Warn about stack usage of more than 256K = 262144 bytes. +# Warn about stack usage of more than 512K = 524288 bytes. if ADD_STACK_USAGE_WARNING -STACK_USAGE_WARNING=-Wstack-usage=262144 +STACK_USAGE_WARNING=-Wstack-usage=524288 else STACK_USAGE_WARNING= endif @@ -86,14 +89,14 @@ endif %.os: %.c %.o if AMDEP - $(AM_V_CC)if $(COMPILE.os) -c -o $@ -fPIC $(DEFS.os) -MT $@ -MD -MP \ + $(AM_V_CC)if $(COMPILE.os) -c -o $@ $(fpic_CFLAGS) $(DEFS.os) -MT $@ -MD -MP \ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \ rm -f "$(DEPDIR)/$*.Tpo"; \ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ fi else - $(AM_V_CC)$(COMPILE.os) -c -o $@ -fPIC $(DEFS.os) $< + $(AM_V_CC)$(COMPILE.os) -c -o $@ $(fpic_CFLAGS) $(DEFS.os) $< endif CLEANFILES = *.gcno *.gcda @@ -104,7 +107,23 @@ textrel_found = $(textrel_msg); exit 1 else textrel_found = $(textrel_msg) endif +if NATIVE_ELF textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi +else +textrel_check = +endif + +if NATIVE_PE +%.lib: %.def + case '$(host_cpu)' in \ + i?86) \ + lib /machine:x86 /def:$< ;;\ + x86_64) \ + lib /machine:x64 /def:$< ;;\ + arm) \ + lib /machine:arm /def:$< ;;\ + esac; +endif print-%: @echo $*=$($*) |
