projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
28caa37
)
allow the make command line to override LD properly
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 3 Feb 2008 01:33:48 +0000
(
02:33
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 3 Feb 2008 01:33:48 +0000
(
02:33
+0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 051426998e900d28c7c14516b9dae5d3806a5e05..989f89056c577dd416225e5296193cfdbed42c99 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-17,10
+17,11
@@
ifneq ($(DEBUG),)
endif
OS=$(shell uname)
ifeq ($(OS),Darwin)
endif
OS=$(shell uname)
ifeq ($(OS),Darwin)
+ LINK=$(LD)
SHLIB_EXT=dylib
SHLIB_FLAGS=-dylib
else
SHLIB_EXT=dylib
SHLIB_FLAGS=-dylib
else
- L
D
=$(CC)
+ L
INK
=$(CC)
SHLIB_EXT=so
SHLIB_FLAGS=-shared -Wl,-soname,$(SHLIB_FILE)
endif
SHLIB_EXT=so
SHLIB_FLAGS=-shared -Wl,-soname,$(SHLIB_FILE)
endif
@@
-48,7
+49,7
@@
libuci.a: libuci-static.o
$(RANLIB) $@
libuci.$(SHLIB_EXT): libuci-shared.o
$(RANLIB) $@
libuci.$(SHLIB_EXT): libuci-shared.o
- $(L
D
) $(SHLIB_FLAGS) -o $(SHLIB_FILE) $^ $(LIBS)
+ $(L
INK
) $(SHLIB_FLAGS) -o $(SHLIB_FILE) $^ $(LIBS)
ln -sf $(SHLIB_FILE) $@
clean:
ln -sf $(SHLIB_FILE) $@
clean: