pre_configure=""
prefix=$SANDBOX/Install
case $pkg in
+ cairo-*)
+ extra_cflags="-fstack-protector";;
+ gsl-*)
+ extra_config_flags="GSL_LDFLAGS=-XCClinker -fstack-protector";
+ extra_cflags="-fstack-protector";;
librsvg-*)
extra_config_flags="--disable-tools --enable-introspection=no --disable-gtk-doc-html"
build_procs=1
;;
pango-1.48.*)
build_system="meson";
+ extra_cflags="-fstack-protector";
+ extra_ldflags="-fstack-protector";
;;
spread-sheet-widget-*)
;;
meson setup --prefix=$prefix \
--libdir=lib \
--cross-file=$SANDBOX/cross-file.txt \
- -Dc_link_args=-L$SANDBOX/Install/lib \
+ -Dc_link_args="-L$SANDBOX/Install/lib $extra_ldflags" \
-Dc_args="-I$SANDBOX/Install/include $extra_cflags" \
--wrap-mode=nodownload \
$meson_opts \
$SANDBOX/Source/$pkg/configure \
--host="$arch" \
--prefix="$prefix" \
- $extra_config_flags \
- CPPFLAGS="-I $depdir/include" \
- LDFLAGS="-L$depdir/lib" \
+ "$extra_config_flags" \
+ CFLAGS="$extra_cflags" \
+ CPPFLAGS="-I $depdir/include $extra_cppflags" \
+ LDFLAGS="-L$depdir/lib $extra_ldflags" \
PKG_CONFIG_LIBDIR="$depdir/lib/pkgconfig" &&
make -j $build_procs && make install && $extra_build
;;