Pass LDFLAGS to apxs using "-Wl,". This patch should be sent to the developers.
old
|
new
|
|
208 | 208 | top_srcdir = @top_srcdir@ |
209 | 209 | AUTOMAKE_OPTIONS = foreign |
210 | 210 | WC = -Wc,"$(CFLAGS)" |
| 211 | WL = -Wl,"$(LDFLAGS)" |
211 | 212 | CLEANFILES = *.la *.lo *.o *.so *.slo .libs/* |
212 | 213 | EXTRA_DIST = mod_maxminddb.c |
213 | 214 | all: all-am |
… |
… |
|
402 | 402 | |
403 | 403 | # compile the DSO file |
404 | 404 | module: mod_maxminddb.c $(TARGET) |
405 | | $(APXS) -c $(LDFLAGS) $(LIBMAXMINDDB_LDFLAGS) $(LIBS) $(WC) $(APXS_LDFLAGS) mod_maxminddb.c |
| 405 | $(APXS) -c $(WL) $(LIBMAXMINDDB_LDFLAGS) $(LIBS) $(WC) $(APXS_LDFLAGS) mod_maxminddb.c |
406 | 406 | |
407 | 407 | install-exec-local: module |
408 | 408 | $(APXS) -i -a -n maxminddb .libs/mod_maxminddb.so |