#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)

0001-configure.ac-fix-stack-protector-detection.patch (2.1 KB) - added by fabrice 12 months ago.
Patch

Download all attachments as: .zip

Change History (4)

Changed 12 months ago by fabrice

Patch

comment:1 Changed 12 months ago by Christian Franke

Milestone: Release 7.2
Type: defectpatch

comment:2 Changed 12 months ago by Christian Franke

Owner: set to Christian Franke
Status: newaccepted

comment:3 Changed 12 months ago by Christian Franke

Resolution: fixed
Status: acceptedclosed

Patch applied in r5032, thanks!

Note: See TracTickets for help on using tickets.