Opened 5 years ago
Closed 5 years ago
#1302 closed patch (fixed)
configure.ac: fix stack-protector detection
Reported by: | fabrice | Owned by: | Christian Franke |
---|---|---|---|
Priority: | major | Milestone: | Release 7.2 |
Component: | all | Version: | 7.1 |
Keywords: | Cc: |
Description
Use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE to check for
stack-protector availability as some compilers could missed the needed
library (-lssp or -lssp_nonshared) at linking step:
/home/giuliobenetti/autobuild/run/instance-3/output-1/host/bin/x86_64-linux-g++ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -W -Wformat=2 -fstack-protector-strong -o smartctl smartctl.o atacmdnames.o atacmds.o ataidentify.o ataprint.o dev_ata_cmd_set.o dev_intelliprop.o dev_interface.o dev_jmb39x_raid.o json.o knowndrives.o nvmecmds.o nvmeprint.o scsicmds.o scsiata.o scsinvme.o scsiprint.o utility.o os_linux.o cciss.o dev_areca.o -lselinux
/home/giuliobenetti/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp_nonshared
/home/giuliobenetti/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp
Fixes:
Attachments (1)
Change History (4)
by , 5 years ago
Attachment: | 0001-configure.ac-fix-stack-protector-detection.patch added |
---|
comment:1 by , 5 years ago
Milestone: | → Release 7.2 |
---|---|
Type: | defect → patch |
comment:2 by , 5 years ago
Owner: | set to |
---|---|
Status: | new → accepted |
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Patch applied in r5032, thanks!
Patch