From: Guillem Jover Date: Sat, 30 Jan 2010 21:40:01 +0000 (+0100) Subject: build: Use CCLD instead of hardcoded gcc for linking X-Git-Tag: 0.3.0~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f0b0b23cd0a215c575a4becf686e5e005732848;p=thirdparty%2Flibbsd.git build: Use CCLD instead of hardcoded gcc for linking --- diff --git a/Makefile b/Makefile index 05f344d..5c5a690 100644 --- a/Makefile +++ b/Makefile @@ -101,6 +101,7 @@ LIB_STATIC_OBJS := $(LIB_SRCS:%.c=%.o) LIB_SHARED_OBJS := $(LIB_SRCS:%.c=%.lo) CC = gcc +CCLD = $(CC) # Set default value for compilation CFLAGS ?= -g -Wall -Wextra -Wno-unused-variable @@ -151,7 +152,8 @@ $(LIB_SONAME): $(LIB_SHARED) ln -fs $^ $@ $(LIB_SHARED): $(LIB_SHARED_OBJS) - gcc -shared \ + $(CCLD) \ + -shared \ -Wl,-soname -Wl,$(LIB_SONAME) \ -Wl,--version-script=Versions \ -o $@ $^