Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Application:Geo
wiringpi
fix-dev-deps.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-dev-deps.patch of Package wiringpi
Author: Dave Jones <dave.jones@canonical.com> Description: Fix various dependencies The libwiringPiDev library is missing a link dependency on libwiringPi. It also needs to include the path to the libwiringPi headers. The gpio utility has extraneous lib dependencies (librt, libm, and libcrypt). Finally, for libwiringPi itself, the libraries to link with must be placed at the end of the command line or the linker (with the now default -as-needed option) won't declare the exported nameds in the libraries as needed. --- a/gpio/Makefile +++ b/gpio/Makefile @@ -36,7 +36,7 @@ CFLAGS = $(DEBUG) -Wall -Wextra $(INCLUDE) -Winline -pipe LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib -LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt +LIBS = -lwiringPi -lwiringPiDev -lpthread # May not need to alter anything below this line ############################################################################### --- a/wiringPi/Makefile +++ b/wiringPi/Makefile @@ -74,7 +74,8 @@ $(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) + $Q ln -sf libwiringPi.so.$(VERSION) libwiringPi.so .c.o: $Q echo [Compile] $< --- a/devLib/Makefile +++ b/devLib/Makefile @@ -36,11 +36,11 @@ #DEBUG = -g -O0 DEBUG = -O2 -INCLUDE = -I. +INCLUDE = -I. -I../wiringPi DEFS = -D_GNU_SOURCE CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC -LIBS = +LIBS = -lpthread -lwiringPi ############################################################################### @@ -67,7 +67,7 @@ $(DYNAMIC): $(OBJ) $Q echo "[Link (Dynamic)]" - $Q $(CC) -shared -Wl,-soname,libwiringPiDev.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ) + $Q $(CC) -shared -Wl,-soname,libwiringPiDev.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPiDev.so.$(VERSION) -L ../wiringPi $(OBJ) $(LIBS) .c.o: $Q echo [Compile] $<
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor