view cc-wrapper.sh.in @ 20656:4497b16da1e3

lib: Fix SENTRY_CHAR to different kind of number Makes static analysers happier
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Tue, 16 Aug 2016 13:49:01 +0300
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