libcxx: add linker scripts for libc++.a to ensure libc++abi.a is properly linked

This commit is contained in:
James Kay 2018-12-17 18:59:05 +00:00
parent d8699a9a5b
commit 72e1764199
No known key found for this signature in database
GPG Key ID: 76BE7F17BF11AD15
8 changed files with 24 additions and 0 deletions

View File

@ -44,6 +44,11 @@ stdenv.mkDerivation rec {
linkCxxAbi = stdenv.isLinux;
postInstall = ''
mv $out/lib/libc++.a $out/lib/libc++_static.a
cp ${./libc++.a} $out/lib/libc++.a
'';
setupHooks = [
../../../../../build-support/setup-hooks/role.bash
./setup-hook.sh

View File

@ -0,0 +1 @@
INPUT(-lc++_static -lc++abi)

View File

@ -38,6 +38,11 @@ stdenv.mkDerivation rec {
linkCxxAbi = stdenv.isLinux;
postInstall = ''
mv $out/lib/libc++.a $out/lib/libc++_static.a
cp ${./libc++.a} $out/lib/libc++.a
'';
setupHooks = [
../../../../../build-support/setup-hooks/role.bash
./setup-hook.sh

View File

@ -0,0 +1 @@
INPUT(-lc++_static -lc++abi)

View File

@ -38,6 +38,11 @@ stdenv.mkDerivation rec {
linkCxxAbi = stdenv.isLinux;
postInstall = ''
mv $out/lib/libc++.a $out/lib/libc++_static.a
cp ${./libc++.a} $out/lib/libc++.a
'';
setupHooks = [
../../../../../build-support/setup-hooks/role.bash
./setup-hook.sh

View File

@ -0,0 +1 @@
INPUT(-lc++_static -lc++abi)

View File

@ -36,6 +36,11 @@ stdenv.mkDerivation rec {
linkCxxAbi = stdenv.isLinux;
postInstall = ''
mv $out/lib/libc++.a $out/lib/libc++_static.a
cp ${./libc++.a} $out/lib/libc++.a
'';
setupHooks = [
../../../../../build-support/setup-hooks/role.bash
./setup-hook.sh

View File

@ -0,0 +1 @@
INPUT(-lc++_static -lc++abi)