Переглянути джерело

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)
 $(DYNAMIC):	$(OBJ)
 	$Q echo "[Link (Dynamic)]"
 	$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:
 .c.o:
 	$Q echo [Compile] $<
 	$Q echo [Compile] $<