Skip to content

Commit

Permalink
gcc musl manual 3
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Oct 11, 2023
1 parent 88d0597 commit de3752f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ build_single_target() {

export _TOP; _TOP="$(pwd)" # Must be an absolute path
_BLDDIR_BASE='bld'
export _PKGDIR="${_CPU}-${_CRT}"
export _PKGDIR="${_OS}-${_CPU}-${_CRT}"
_PREFIX='/usr'
export _PP="${_PKGDIR}${_PREFIX}"
export _CC_GLOBAL=''
Expand Down Expand Up @@ -1132,9 +1132,9 @@ build_single_target() {
clangrtlib="$(basename "${clangrtlib}" | cut -c 4-)" # delete 'lib' prefix
clangrtlib="${clangrtlib%.*}" # gcc
libprefix="/usr/lib/${_machine}-linux-musl"
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -nostdinc -isystem /usr/include/${_machine}-linux-musl -isystem include"
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -nostdlib -nodefaultlibs -nostartfiles -L${libprefix} ${libprefix}/Scrt1.o ${libprefix}/crti.o -L${clangrsdir} crtbeginS.o crtendS.o ${libprefix}/crtn.o"
_LIBS_GLOBAL="${_LIBS_GLOBAL} -lc -lgcc -lgcc_eh"
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -static -nostdinc -isystem /usr/include/${_machine}-linux-musl"
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -nostartfiles -L${libprefix} -Wl,${libprefix}/Scrt1.o -Wl,${libprefix}/crti.o -L${clangrsdir} -Wl,${libprefix}/crtn.o"
_LIBS_GLOBAL="${_LIBS_GLOBAL} -lc -lgcc"
fi
# *cpp_options: -nostdinc -isystem /usr/include/aarch64-linux-musl -isystem include%s %(old_cpp_options)
# *cc1: %(cc1_cpu) -nostdinc -isystem /usr/include/aarch64-linux-musl -isystem include%s
Expand Down

0 comments on commit de3752f

Please sign in to comment.