Compare commits
2 commits
e21778c81b
...
6d0463d37d
Author | SHA1 | Date | |
---|---|---|---|
Jake Hamilton | 6d0463d37d | ||
Jake Hamilton | 4b36a5a013 |
|
@ -8,10 +8,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "foundation",
|
"dir": "foundation",
|
||||||
"dirtyRev": "cadfaabc853d20f2bc20bad794fcbe520ea48f13-dirty",
|
"lastModified": 1724190751,
|
||||||
"dirtyShortRev": "cadfaab-dirty",
|
"narHash": "sha256-e8sOmeXS9YWuQqjW6gvtS3PIueazkf4S1iiJ/94eXv4=",
|
||||||
"lastModified": 1723737980,
|
"ref": "master",
|
||||||
"narHash": "sha256-wytg4odrfvFVYvTskWUficyi8VnaaEt54aIlKUn3SKw=",
|
"rev": "4b36a5a0133f5481840bdfaf693c971215a7ef1f",
|
||||||
|
"revCount": 84,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:../"
|
"url": "file:../"
|
||||||
},
|
},
|
||||||
|
@ -24,10 +25,11 @@
|
||||||
"lib": {
|
"lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"dirtyRev": "cadfaabc853d20f2bc20bad794fcbe520ea48f13-dirty",
|
"lastModified": 1724190751,
|
||||||
"dirtyShortRev": "cadfaab-dirty",
|
"narHash": "sha256-e8sOmeXS9YWuQqjW6gvtS3PIueazkf4S1iiJ/94eXv4=",
|
||||||
"lastModified": 1723737980,
|
"ref": "master",
|
||||||
"narHash": "sha256-wytg4odrfvFVYvTskWUficyi8VnaaEt54aIlKUn3SKw=",
|
"rev": "4b36a5a0133f5481840bdfaf693c971215a7ef1f",
|
||||||
|
"revCount": 84,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:../"
|
"url": "file:../"
|
||||||
},
|
},
|
||||||
|
|
|
@ -203,30 +203,23 @@ in
|
||||||
patch = ''
|
patch = ''
|
||||||
# Patch
|
# Patch
|
||||||
# force musl even if host triple is gnu
|
# force musl even if host triple is gnu
|
||||||
# sed -i 's|"os/gnu-linux"|"os/generic"|' libstdc++-v3/configure.host
|
sed -i 's|"os/gnu-linux"|"os/generic"|' libstdc++-v3/configure.host
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configure = ''
|
configure = ''
|
||||||
# Configure
|
# Configure
|
||||||
# export CC="gcc -Wl,-dynamic-linker -Wl,${foundation.stage1-musl}/lib/libc.so"
|
export CC="gcc -Wl,-dynamic-linker -Wl,${foundation.stage1-musl}/lib/libc.so"
|
||||||
# export CXX="g++ -Wl,-dynamic-linker -Wl,${foundation.stage1-musl}/lib/libc.so"
|
export CXX="g++ -Wl,-dynamic-linker -Wl,${foundation.stage1-musl}/lib/libc.so"
|
||||||
# export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${foundation.stage1-musl}/lib/libc.so"
|
export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${foundation.stage1-musl}/lib/libc.so"
|
||||||
export CC="gcc -Wl,-dynamic-linker"
|
export LIBRARY_PATH="${foundation.stage1-musl}/lib"
|
||||||
export CXX="g++ -Wl,-dynamic-linker"
|
|
||||||
export CFLAGS_FOR_TARGET="-Wl,-dynamic-linker"
|
|
||||||
# export LIBRARY_PATH="${foundation.stage1-musl}/lib"
|
|
||||||
export LIBRARY_PATH="$AUX_COMPILER_LIBRARY_PATH"
|
|
||||||
|
|
||||||
: ''${LD_LIBRARY_PATH:=}
|
|
||||||
export LD_LIBRARY_PATH="$NIX_BUILD_TOP/gmp/lib:$NIX_BUILD_TOP/mpfr/lib:$NIX_BUILD_TOP/mpc/lib:$NIX_BUILD_TOP/isl/lib:$LD_LIBRARY_PATH"
|
|
||||||
|
|
||||||
# --with-sysroot=${foundation.stage1-musl} \
|
|
||||||
# --with-native-system-header-dir=/include \
|
|
||||||
bash ./configure \
|
bash ./configure \
|
||||||
--prefix=$out \
|
--prefix=$out \
|
||||||
--build=${config.platform.build.triple} \
|
--build=${config.platform.build.triple} \
|
||||||
--host=${config.platform.host.triple} \
|
--host=${config.platform.host.triple} \
|
||||||
--target=${config.platform.target.triple} \
|
--target=${config.platform.target.triple} \
|
||||||
|
--with-sysroot=${foundation.stage1-musl} \
|
||||||
|
--with-native-system-header-dir=/include \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
--disable-bootstrap \
|
--disable-bootstrap \
|
||||||
--disable-libsanitizer \
|
--disable-libsanitizer \
|
||||||
|
|
Loading…
Reference in a new issue