summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2012-12-19 00:53:00 +0100
committerBertrand Jacquin <beber@meleeweb.net>2012-12-19 00:53:00 +0100
commit29113bd3b4cdfe9a5770fc66cde044516ec1ba1d (patch)
treee18a1fe49167532e66a4d1e4e9134f7adb3b5a5b
parent[BUILD] Only strip dynamic library (diff)
downloadmod_virtualvalue-29113bd3b4cdfe9a5770fc66cde044516ec1ba1d.tar.gz
[BUILD] Use compiler linker instead of ld to be able to link easer using
icc, ekopath, ...
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index bfb8008..2fa7496 100644
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,6 @@ SPEC_CFLAGS = \
$(PHP_CFLAGS)
SPEC_LDFLAGS = \
- -lc \
$(HTTPD_LDFLAGS) \
$(APR_LDFLAGS) \
$(PHP_LDFLAGS)
@@ -68,9 +67,8 @@ SPEC_CFLAGS +=\
-g -ggdb
endif # DEBUG
-CC = gcc
-
-LD = ld
+CC = cc
+LD = $(CC)
STRIP = strip
STRIP_FLAGS = --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.build-id
@@ -98,7 +96,7 @@ dist: $(NAME)-$(VERSION).txz
$(NAME).so: $(SRC:c=o)
$(call quiet_cmd,LD,$@)
- $(Q)$(LD) -shared -z now -o $@ $^ $(SPEC_LDFLAGS) $(LDFLAGS) -soname $@
+ $(Q)$(LD) -shared -o $@ $^ $(SPEC_LDFLAGS) $(LDFLAGS)
$(NAME).so.strip: %
$(call quiet_cmd,STRIP,$@)