Skip to content

Commit 18e0c45

Browse files
committed
Fixed MODSEC-360
1 parent adca6e4 commit 18e0c45

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apache2/Makefile.am

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,20 @@ mod_security2_la_LDFLAGS = -no-undefined -module -avoid-version \
6666
@PCRE_LDFLAGS@ @LIBXML2_LDFLAGS@ @LUA_LDFLAGS@
6767
endif
6868

69+
if LINUX
6970
install-exec-hook: $(pkglib_LTLIBRARIES)
7071
@echo "Removing unused static libraries..."; \
7172
for m in $(pkglib_LTLIBRARIES); do \
7273
base=`echo $$m | sed 's/\..*//'`; \
7374
rm -f $(DESTDIR)$(pkglibdir)/$$base.*a; \
7475
install -D -m444 $(DESTDIR)$(pkglibdir)/$$base.so $(DESTDIR)$(APXS_MODULES); \
7576
done
77+
else
78+
install-exec-hook: $(pkglib_LTLIBRARIES)
79+
@echo "Removing unused static libraries..."; \
80+
for m in $(pkglib_LTLIBRARIES); do \
81+
base=`echo $$m | sed 's/\..*//'`; \
82+
rm -f $(DESTDIR)$(pkglibdir)/$$base.*a; \
83+
cp -p $(DESTDIR)$(pkglibdir)/$$base.so $(DESTDIR)$(APXS_MODULES); \
84+
done
85+
endif

0 commit comments

Comments
 (0)