view cc-wrapper.sh.in @ 19227:a887dc2b3fb9

imapc: Fixed crash if imapc_host or imapc_password setting was missing. Instead of giving a nice error message about it. Found by Coverity.
author Timo Sirainen <tss@iki.fi>
date Sun, 27 Sep 2015 21:30:56 +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