view cc-wrapper.sh.in @ 19537:304b06f6302c

lib-storage: Fixed autoexpunge for namespaces with non-empty prefix
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 04 Jan 2016 14:23:46 -0500
parents b0c7d2f8a185
children
line wrap: on
line source

#!/bin/sh

if echo "$*" | grep -- -ldl > /dev/null; then
  # the binary uses plugins. make sure we include everything from .a libs
  exec @CC@ -Wl,--whole-archive $* -Wl,--no-whole-archive
else
  exec @CC@ $*
fi