From 990e61cc8931be57bda5526a69e6e204e1ee2dda Mon Sep 17 00:00:00 2001
From: Mihai Moldovan <ionic@ionic.de>
Date: Sun, 25 Feb 2018 04:33:52 +0100
Subject: nxcompshad/{configure.ac,src/Makefile.am}: only enable new ELF dtags
 if target system actually is ELF-based.

---
 nxcompshad/src/Makefile.am | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'nxcompshad/src')

diff --git a/nxcompshad/src/Makefile.am b/nxcompshad/src/Makefile.am
index f7beac86e..4580149ad 100644
--- a/nxcompshad/src/Makefile.am
+++ b/nxcompshad/src/Makefile.am
@@ -39,10 +39,14 @@ AM_CPPFLAGS =						\
 
 libXcompshad_la_LDFLAGS =				\
     -version-number @LT_COMPSHAD_VERSION@ -no-undefined	\
-    -Wl,--enable-new-dtags				\
     -R '$(libdir)/nx/X11'				\
     $(NULL)
 
+if TARGET_ELF
+libXcompshad_la_LDFLAGS +=				\
+    -Wl,--enable-new-dtags				\
+endif TARGET_ELF
+
 libXcompshadincludedir = $(includedir)/nx
 libXcompshadinclude_HEADERS =				\
      $(top_srcdir)/include/Shadow.h			\
-- 
cgit v1.2.3