summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2012-12-04 18:59:07 +0100
committerBertrand Jacquin <beber@meleeweb.net>2012-12-04 18:59:07 +0100
commitde187dae3f8fb38c8dc2612407309ff16038201f (patch)
tree1382e941a2d527e89d648e5c4b049e98dd70e2c0
parent[CLEANUP] Move TODO list from mod_virtualvalue.c to TODO file (diff)
downloadmod_virtualvalue-de187dae3f8fb38c8dc2612407309ff16038201f.tar.gz
[BUILD] Building shared lib was b0rken since 6834098231d3e08e8527ff8c61affbbee3e6be0d
Restore linking to -lc, also resolv symbol at dlopen(). Force SONAME Order matters
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 06d1e14..21eaefa 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,7 @@ SPEC_CFLAGS = \
$(PHP_CFLAGS)
SPEC_LDFLAGS = \
+ -lc \
$(APR_LDFLAGS) \
$(HTTPD_LDFLAGS) \
$(PHP_LDFLAGS)
@@ -90,7 +91,7 @@ $(NAME).a: $(SRC:c=o)
$(NAME).so: $(SRC:c=o)
$(call quiet_cmd,LD,$@)
- $(Q)$(LD) -shared $(SPEC_LDFLAGS) $(LDFLAGS) -o $@ $<
+ $(Q)$(LD) -shared -z now -o $@ $< $(SPEC_LDFLAGS) $(LDFLAGS) -soname $@
%.o: %.c
$(call quiet_cmd,CC,$@)