Compare commits
No commits in common. "6d0463d37d046829264a65b7f40996cc76e99974" and "e21778c81bb11b9830a813e44d0656e6af30cd68" have entirely different histories.
6d0463d37d
...
e21778c81b
|
@ -8,11 +8,10 @@
|
|||
},
|
||||
"locked": {
|
||||
"dir": "foundation",
|
||||
"lastModified": 1724190751,
|
||||
"narHash": "sha256-e8sOmeXS9YWuQqjW6gvtS3PIueazkf4S1iiJ/94eXv4=",
|
||||
"ref": "master",
|
||||
"rev": "4b36a5a0133f5481840bdfaf693c971215a7ef1f",
|
||||
"revCount": 84,
|
||||
"dirtyRev": "cadfaabc853d20f2bc20bad794fcbe520ea48f13-dirty",
|
||||
"dirtyShortRev": "cadfaab-dirty",
|
||||
"lastModified": 1723737980,
|
||||
"narHash": "sha256-wytg4odrfvFVYvTskWUficyi8VnaaEt54aIlKUn3SKw=",
|
||||
"type": "git",
|
||||
"url": "file:../"
|
||||
},
|
||||
|
@ -25,11 +24,10 @@
|
|||
"lib": {
|
||||
"locked": {
|
||||
"dir": "lib",
|
||||
"lastModified": 1724190751,
|
||||
"narHash": "sha256-e8sOmeXS9YWuQqjW6gvtS3PIueazkf4S1iiJ/94eXv4=",
|
||||
"ref": "master",
|
||||
"rev": "4b36a5a0133f5481840bdfaf693c971215a7ef1f",
|
||||
"revCount": 84,
|
||||
"dirtyRev": "cadfaabc853d20f2bc20bad794fcbe520ea48f13-dirty",
|
||||
"dirtyShortRev": "cadfaab-dirty",
|
||||
"lastModified": 1723737980,
|
||||
"narHash": "sha256-wytg4odrfvFVYvTskWUficyi8VnaaEt54aIlKUn3SKw=",
|
||||
"type": "git",
|
||||
"url": "file:../"
|
||||
},
|
||||
|
|
|
@ -203,23 +203,30 @@ in
|
|||
patch = ''
|
||||
# Patch
|
||||
# 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
|
||||
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 CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${foundation.stage1-musl}/lib/libc.so"
|
||||
export LIBRARY_PATH="${foundation.stage1-musl}/lib"
|
||||
# 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 CFLAGS_FOR_TARGET="-Wl,-dynamic-linker -Wl,${foundation.stage1-musl}/lib/libc.so"
|
||||
export CC="gcc -Wl,-dynamic-linker"
|
||||
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 \
|
||||
--prefix=$out \
|
||||
--build=${config.platform.build.triple} \
|
||||
--host=${config.platform.host.triple} \
|
||||
--target=${config.platform.target.triple} \
|
||||
--with-sysroot=${foundation.stage1-musl} \
|
||||
--with-native-system-header-dir=/include \
|
||||
--enable-languages=c,c++ \
|
||||
--disable-bootstrap \
|
||||
--disable-libsanitizer \
|
||||
|
|
Loading…
Reference in a new issue