瀏覽代碼

LIBS have to come after OBJ files for recent GCC

Wolf Vollprecht 2 年之前
父節點
當前提交
d903619255
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      wiringPi/Makefile

+ 1 - 1
wiringPi/Makefile

@@ -75,7 +75,7 @@ static:
 
 $(DYNAMIC):	$(OBJ)
 	$Q echo "[Link (Dynamic)]"
-	$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(LIBS) $(OBJ)
+	$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(OBJ) $(LIBS)
 
 .c.o:
 	$Q echo [Compile] $<