From d903619255589287f19303af324b7eec5de0042d Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Tue, 8 Jun 2021 17:52:44 +0200 Subject: [PATCH] LIBS have to come after OBJ files for recent GCC --- wiringPi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiringPi/Makefile b/wiringPi/Makefile index 2405574..3b825da 100644 --- a/wiringPi/Makefile +++ b/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] $<