Changeset 7281ad1 for configure


Ignore:
Timestamp:
2012-09-15T15:59:17Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b3d99e3
Parents:
68709f5
Message:

Allow building position-independent executables. #981, patch from brainsmoke.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r68709f5 r7281ad1  
    4242ssl=auto
    4343
     44pie=1
     45
    4446arch=`uname -s`
    4547cpu=`uname -m`
     
    8082--debug=0/1     Disable/enable debugging                $debug
    8183--strip=0/1     Disable/enable binary stripping         $strip
     84--pie=0/1       Build position independent executable   $pie
    8285--gcov=0/1      Disable/enable test coverage reporting  $gcov
    8386--plugins=0/1   Disable/enable plugins support          $plugins
     
    9093--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
    9194                                                        $ssl
     95
    9296
    9397--target=...    Cross compilation target                same as host
     
    198202else
    199203        [ -z "$CFLAGS" ] && CFLAGS="-O2 -fno-strict-aliasing"
     204fi
     205
     206if [ "$pie" = "1" ]; then
     207        echo 'CFLAGS_BITLBEE=-fPIE' >> Makefile.settings
     208        echo 'LDFLAGS_BITLBEE=-pie' >> Makefile.settings
    200209fi
    201210
     
    748757fi
    749758
     759if [ "$pie" = "1" ]; then
     760        echo '  Building PIE executable'
     761else
     762        echo '  Building non-PIE executable'
     763fi
     764
    750765if [ "$strip" = "1" ]; then
    751766        echo '  Binary stripping enabled.'
Note: See TracChangeset for help on using the changeset viewer.