diff options
Diffstat (limited to 'chat-irc/bitlbee/BUILD')
-rwxr-xr-x | chat-irc/bitlbee/BUILD | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/chat-irc/bitlbee/BUILD b/chat-irc/bitlbee/BUILD index 0bdd98d6f8..c8eb04054e 100755 --- a/chat-irc/bitlbee/BUILD +++ b/chat-irc/bitlbee/BUILD @@ -1,13 +1,24 @@ +if list_find "$LDFLAGS" "-s"; then + OPTS="--strip=1 $OPTS" +else + OPTS="--strip=0 $OPTS" +fi && + # BUILD file required because of --etcdir path # no --sysconfdir is recognized by the bitlbee Makefile +./configure --prefix="$INSTALL_ROOT/usr" \ + --etcdir="$INSTALL_ROOT/etc/bitlbee" \ + $BITLBEE_OPTS \ + $OPTS && -./configure --build=$BUILD \ - --prefix=/usr \ - --etcdir=/etc/bitlbee \ - $BITLBEE_OPTS $OPTS +make && -make +if [[ "$BITLBEE_BITLBEED" == y ]]; then + cd ${SOURCE_DIRECTORY}/utils && + gcc $CFLAGS bitlbeed.c -o bitlbeed && -if [[ "$BITLBEE_BITLBEED" == y ]] ; then - (cd ${SOURCE_DIRECTORY}/utils && gcc bitlbeed.c -o bitlbeed) + if list_find "$LDFLAGS" "-s"; then + strip bitlbeed + fi && + cd .. fi |