diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-08-12 13:36:35 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2017-08-12 13:36:35 +0200 |
commit | 21ae72de3d6658bba0f402fd95fd75fbe9bffeae (patch) | |
tree | bd44a5fc3c64a54d2295378cc29f9a37127891a6 | |
parent | 96830c5eed9bda549ba078a84381ce94438a8d36 (diff) |
Use cc for linking the library.
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $@ $< |