#!/bin/bash
# Wrapper for $(LIBTOOL) that performs PaX marking on the dumper binary
# generated by g-ir-scanner.

flags=${1//-}; shift

echo ${LIBTOOL} "$@"
${LIBTOOL} "$@"

retval=$?

bash "@S@/paxctl.sh" "${flags}" $(find . -path "*tmp-introspect*/.libs/*")

exit ${retval}
