diff --git a/src/target/Makefile b/src/target/Makefile index 5d9f1a8..0788687 100644 --- a/src/target/Makefile +++ b/src/target/Makefile @@ -8,7 +8,7 @@ CFLAGSF = -W CFLAGS = -Wall -g -fPIC AR = ar -rc RANLIB = ranlib -LD = ld -shared +LD = $(CC) -shared RM = rm -f MKDIR = mkdir -p INSTALL = install @@ -24,7 +24,7 @@ as.a: $(as_OBJS) $(RANLIB) as.a as.so: $(as_OBJS) - $(LD) -o as.so $(as_OBJS) -L $(LIBDIR) -rpath $(LIBDIR) -l as + $(LD) -o as.so $(as_OBJS) -L $(LIBDIR) -Wl,-rpath $(LIBDIR) -l as graph_OBJS = graph.o graph_CFLAGS = $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) diff --git a/src/target/project.conf b/src/target/project.conf index 803cbb6..77cd74d 100644 --- a/src/target/project.conf +++ b/src/target/project.conf @@ -6,7 +6,7 @@ targets=as,graph [as] type=library sources=as.c -ldflags=-L $(LIBDIR) -rpath $(LIBDIR) -l as +ldflags=-L $(LIBDIR) -Wl,-rpath $(LIBDIR) -l as install=$(LIBDIR)/c99/target [graph]