diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2016-09-16 17:31:22 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-09-21 11:38:22 +0100 |
commit | 5229f7560443ed25aabaf8c7bcd86e148ccb357b (patch) | |
tree | b09b77951924ebd33c278042ae27b8ddc87e4c5a | |
parent | 5771c7f7d4f0984141654d7208dcb7f1c67c37af (diff) | |
download | meta-raspberrypi-5229f7560443ed25aabaf8c7bcd86e148ccb357b.tar.gz |
wiringPi: Fix compilation of libraries
Not using the yocto LDFLAGS will make some qa tests fail:
ERROR: wiringpi-git-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary:
'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/wiringpi/git-r0/packages-split/wiringpi/usr/lib/libwiringPi.so.2.32'
No GNU_HASH in the elf binary:
'build-rpi-master/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/wiringpi/git-r0/packages-split/wiringpi/usr/lib/libwiringPiDev.so.2.32'
[ldflags]
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r-- | recipes-devtools/wiringPi/files/0001-Add-initial-cross-compile-support.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-devtools/wiringPi/files/0001-Add-initial-cross-compile-support.patch b/recipes-devtools/wiringPi/files/0001-Add-initial-cross-compile-support.patch index ed47fab..603422c 100644 --- a/recipes-devtools/wiringPi/files/0001-Add-initial-cross-compile-support.patch +++ b/recipes-devtools/wiringPi/files/0001-Add-initial-cross-compile-support.patch | |||
@@ -51,7 +51,7 @@ index 0fb0033..cbea759 100644 | |||
51 | $(DYNAMIC): $(OBJ) | 51 | $(DYNAMIC): $(OBJ) |
52 | $Q echo "[Link (Dynamic)]" | 52 | $Q echo "[Link (Dynamic)]" |
53 | - $Q $(CC) -shared -Wl,-soname,libwiringPiDev.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ) | 53 | - $Q $(CC) -shared -Wl,-soname,libwiringPiDev.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ) |
54 | + $Q $(CC) -shared -Wl,-soname,$(BASE_NAME).so.$(DYN_VERS_MAJ) -o $(BASE_NAME).so -lpthread $(OBJ) | 54 | + $Q $(CC) -shared $(LDFLAGS) -Wl,-soname,$(BASE_NAME).so.$(DYN_VERS_MAJ) -o $(BASE_NAME).so -lpthread $(OBJ) |
55 | 55 | ||
56 | .c.o: | 56 | .c.o: |
57 | $Q echo [Compile] $< | 57 | $Q echo [Compile] $< |
@@ -341,7 +341,7 @@ index 6bbcc5d..5355b74 100644 | |||
341 | $(DYNAMIC): $(OBJ) | 341 | $(DYNAMIC): $(OBJ) |
342 | $Q echo "[Link (Dynamic)]" | 342 | $Q echo "[Link (Dynamic)]" |
343 | - $Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) -lpthread $(OBJ) | 343 | - $Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) -lpthread $(OBJ) |
344 | + $Q $(CC) -shared -Wl,-soname,$(BASE_NAME).so.$(DYN_VERS_MAJ) -o $(BASE_NAME).so -lpthread $(OBJ) | 344 | + $Q $(CC) $(LDFLAGS) -shared -Wl,-soname,$(BASE_NAME).so.$(DYN_VERS_MAJ) -o $(BASE_NAME).so -lpthread $(OBJ) |
345 | 345 | ||
346 | .c.o: | 346 | .c.o: |
347 | $Q echo [Compile] $< | 347 | $Q echo [Compile] $< |