Commit 06c14b83 authored by Mihai Moldovan's avatar Mihai Moldovan

nxproxy/{configure.ac,src/Makefile.am}: only enable new ELF dtags if target…

nxproxy/{configure.ac,src/Makefile.am}: only enable new ELF dtags if target system actually is ELF-based. Fixes: ArcticaProject/nx-libs#661
parent 990e61cc
......@@ -26,6 +26,8 @@ AC_LANG([C])
NX_COMPILER_BRAND
NX_DEFAULT_OPTIONS
NX_TARGET_USE_ELF
dnl This is a workaround for a nasty libtool bug.
dnl We actually compile libXcomp with pthread support, but libtool uses g++ ... -nostdlib ... -pthread
dnl on Linux. -nostdlib causes -pthread to be ignored.
......
......@@ -15,8 +15,13 @@ nxproxy_LDADD = \
nxproxy_LDFLAGS = \
$(PTHREAD_LDFLAGS) \
$(NULL)
if TARGET_ELF
nxproxy_LDFLAGS += \
-Wl,--enable-new-dtags \
$(NULL)
endif TARGET_ELF
nxproxy_CFLAGS = \
$(BASE_CFLAGS) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment