e330f85add
--HG-- extra : convert_revision : cdcdcd1aa66827f66097a0563f552e973206154f
30 lines
751 B
Plaintext
30 lines
751 B
Plaintext
# Template file for 'libssp'.
|
|
#
|
|
short_desc="GCC SSP library support"
|
|
long_desc="${long_desc}
|
|
|
|
This package contains the Stack Smashing Protection development
|
|
files provided by GCC."
|
|
|
|
Add_dependency run glibc-devel
|
|
Add_dependency run libssp
|
|
|
|
do_install()
|
|
{
|
|
local triplet=
|
|
|
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
triplet="${xbps_machine}-unknown-linux-gnu"
|
|
else
|
|
triplet="${xbps_machine}-pc-linux-gnu"
|
|
fi
|
|
|
|
mkdir -p ${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include
|
|
mkdir -p ${DESTDIR}/usr/lib
|
|
|
|
mv ${SRCPKGDESTDIR}/usr/lib/libssp*.a ${DESTDIR}/usr/lib
|
|
mv ${SRCPKGDESTDIR}/usr/lib/libssp.so ${DESTDIR}/usr/lib
|
|
mv ${SRCPKGDESTDIR}/usr/lib/gcc/${triplet}/${version}/include/ssp \
|
|
${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include
|
|
}
|