summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2010-01-30 22:40:01 +0100
committerGuillem Jover <guillem@hadrons.org>2010-01-30 22:40:01 +0100
commit1f0b0b23cd0a215c575a4becf686e5e005732848 (patch)
tree54fd9750baceba663479567707c4a1630217c27f
parent32d79b0310b6602e4846a5972bebde6b169945f3 (diff)
build: Use CCLD instead of hardcoded gcc for linking
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 05f344d..5c5a690 100644
--- a/Makefile
+++ b/Makefile
@@ -103,2 +103,3 @@ LIB_SHARED_OBJS := $(LIB_SRCS:%.c=%.lo)
CC = gcc
+CCLD = $(CC)
@@ -153,3 +154,4 @@ $(LIB_SONAME): $(LIB_SHARED)
$(LIB_SHARED): $(LIB_SHARED_OBJS)
- gcc -shared \
+ $(CCLD) \
+ -shared \
-Wl,-soname -Wl,$(LIB_SONAME) \