Browse Source

fix ldflags

Xℹ Ruoyao 4 years ago
parent
commit
294d4a8887
1 changed files with 2 additions and 1 deletions
  1. 2 1
      demo/Makefile

+ 2 - 1
demo/Makefile

@@ -1,8 +1,9 @@
 LIBS=-ljump -lm
+LDFLAGS=-L..
 
 UNAME_S := $(shell uname -s)
 ifeq ($(UNAME_S), Linux)
-	LDFLAGS+=-L.. -Wl,-rpath -Wl,'$${ORIGIN}/..'
+	LDFLAGS+=-Wl,-rpath -Wl,'$${ORIGIN}/..'
 endif
 
 CFLAGS=-I..