cleanup shared library build system to be more $HOME-local-install friendly
the path for the dynamic linker is now configurable, and failure to install the symlink for it will not stop the build.
This commit is contained in:
parent
230f1813ad
commit
207c45d7ab
3 changed files with 21 additions and 16 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
printf '#!/bin/sh\n\nlibc_prefix="%s"\narch="%s"\n' "$1" "$2"
|
||||
printf '#!/bin/sh\n\nlibc_prefix="%s"\nldso_pathname="%s"\n' "$1" "$2"
|
||||
|
||||
cat <<"EOF"
|
||||
libc_lib=$libc_prefix/lib
|
||||
|
|
@ -28,5 +28,5 @@ exec "$0" "$@"
|
|||
' -std=gnu99 -nostdinc -nostdlib \
|
||||
-isystem "$libc_inc" -isystem "$gcc_inc" \
|
||||
-Wl,-xxxxxx "$@" -L"$libc_lib" -lc -L"$libgcc" -lgcc -Lxxxxxx \
|
||||
-Wl,-dynamic-linker,/lib/ld-musl-"$arch".so.1 -Wl,-nostdlib
|
||||
-Wl,-dynamic-linker,"$ldso_pathname" -Wl,-nostdlib
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue