[[ Prebuilt ]] Build Linux prebuilt libraries with position-independant code#6953
[[ Prebuilt ]] Build Linux prebuilt libraries with position-independant code#6953livecodeali merged 2 commits intodevelopfrom
Conversation
…aries By building the prebuilt libraries with position-independent code, we enable them to be linked into position-independent executables, which is now the default for executables built with recent versions of GCC (v6 onwards)
…ision Make sure the Curl build script generates the correct archive name for OpenSSL with a non-empty buildrevision, otherwise the build will fail.
|
@livecode-vulcan review ok 17637ac |
|
💙 review by @runrevmark ok 17637ac |
…-pic [[ Prebuilt ]] Build Linux prebuilt libraries with position-independant code This patch enables the `-fPIC` option when compiling Linux prebuilt libraries, allowing those libraries to be used to create position-independent executables, which is now the default in the version of GCC provided with Ubuntu 18.04.
|
😞 test failure 17637ac
|
|
@livecode-vulcan retry 17637ac |
…-pic [[ Prebuilt ]] Build Linux prebuilt libraries with position-independant code This patch enables the `-fPIC` option when compiling Linux prebuilt libraries, allowing those libraries to be used to create position-independent executables, which is now the default in the version of GCC provided with Ubuntu 18.04.
|
😞 test failure 17637ac
|
|
@livecode-vulcan retry 17637ac |
…-pic [[ Prebuilt ]] Build Linux prebuilt libraries with position-independant code This patch enables the `-fPIC` option when compiling Linux prebuilt libraries, allowing those libraries to be used to create position-independent executables, which is now the default in the version of GCC provided with Ubuntu 18.04.
|
😎 test success 17637ac
|
|
I can no longer build from source, as I'm getting linker errors on all the prebuilt libraries of the form /usr/bin/ld: ../../prebuilt/lib/linux/x86_64/libpcre.a(pcre16_compile.o): |
|
Was this actually tested? |
|
@mwieder you could feasibly have some stale thirdparty prebuilts. Try trashing them and rebuilding. |
|
Hmmm... "make clean-linux" trashes prebuilt/fetched, prebuilt/include, prebuilt/include, and prebuilt/lib. Is there maybe more work it should be doing? |
|
I got rid of everything in prebuilt/packed with the same results. |
|
OK @livecodeian any thoughts on this? |
|
@mwieder @montegoulding I did a test build at the weekend and got the same results as Mark. Investigating I realised the configuration for building thirdparty prebuilt libs didn't include the |
This patch enables the
-fPICoption when compiling Linux prebuilt libraries, allowing those libraries to be used to create position-independent executables, which is now the default in the version of GCC provided with Ubuntu 18.04.