blob: 2c1fd67e675c69cfe0018271e9ac450f6ba86fc4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- src/Makefile.am.orig 2016-10-19 20:07:32 UTC
+++ src/Makefile.am
@@ -1,15 +1,16 @@
AUTOMAKE_OPTIONS = foreign
WC=-Wc,"$(CFLAGS)"
+WL=-Wl,"$(LDFLAGS)"
# the default target
all: module
# compile the DSO file
module: mod_maxminddb.c $(TARGET)
- $(APXS) -c $(LDFLAGS) $(LIBMAXMINDDB_LDFLAGS) $(LIBS) $(WC) $(APXS_LDFLAGS) mod_maxminddb.c
+ $(APXS) -c $(WL) $(LIBMAXMINDDB_LDFLAGS) $(LIBS) $(WC) $(APXS_LDFLAGS) mod_maxminddb.c
install-exec-local: module
- $(APXS) -i -a -n maxminddb .libs/mod_maxminddb.so
+ $(APXS) -S LIBEXECDIR=%%LIBEXECDEST%% -i -a -n maxminddb mod_maxminddb.la ### maxminddb .libs/mod_maxminddb.so
CLEANFILES= *.la *.lo *.o *.so *.slo .libs/*
|