view cc-wrapper.sh.in @ 20595:40ce04c672a4

dsync: Add support for features Add empty_header_workaround as first feature
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Fri, 05 Aug 2016 15:21:29 +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