aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-08-12 13:36:35 +0200
committerAnton Khirnov <anton@khirnov.net>2017-08-12 13:36:35 +0200
commit21ae72de3d6658bba0f402fd95fd75fbe9bffeae (patch)
treebd44a5fc3c64a54d2295378cc29f9a37127891a6
parent96830c5eed9bda549ba078a84381ce94438a8d36 (diff)
Use cc for linking the library.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 88032bf..60f499a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CFLAGS = -std=c99 -D_XOPEN_SOURCE=700 -fPIC -g
-LDFLAGS = --version-script=libbrilldata.v -shared -lm -llapacke
+LDFLAGS = -Wl,--version-script=libbrilldata.v -shared -lm -llapacke
TARGET = libbrilldata.so
@@ -20,7 +20,7 @@ OBJS = basis.o \
all: $(TARGET)
$(TARGET): $(OBJS)
- ld ${LDFLAGS} -o $@ $(OBJS)
+ cc ${LDFLAGS} -o $@ $(OBJS)
%.o: %.c
cc $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $<