newcxxflags=$(echo $CXXFLAGS | sed s/-fstack-protector-strong.//g | sed s/.-fno-plt//g | sed s/.-fstack-clash-protection//g | sed s/.-fcf-protection//g)
newcxxflags=$(echo $CXXFLAGS | sed s/-fstack-protector-strong.//g | sed s/.-fno-plt//g | sed s/.-fstack-clash-protection//g | sed s/.-fcf-protection//g | sed "s#.-ffile-prefix-map=${srcdir}=/usr/src/debug/${pkgname}##g")
export CXXFLAGS="$newcxxflags"
if [ ! -d "$_rootdir/build-gcc48" ] ; then
@ -29,10 +29,11 @@ build() {
cd "$_rootdir/build-gcc48"
# TODO re-enable AudioImporter plugins once they're not depending on OpenAL