mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-16 13:28:35 +00:00
Start using $optldflags and $optcflags
This commit is contained in:
parent
6c21a3fed1
commit
6f8a42e274
@ -8,5 +8,7 @@ version = 0.0
|
||||
mirror = http://dl.2f30.org/morpheus-pkgs/${arch}/${version}
|
||||
CC = ${arch}-linux-musl-gcc
|
||||
|
||||
PATH = ${root}/opt/cross/${arch}-linux-musl/bin:${PATH}
|
||||
optldflags = "-s -Wl,--gc-sections -Wl,-z,relro,-z,now"
|
||||
optcflags = "-fdata-sections -ffunction-sections -Os -g0 -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack"
|
||||
|
||||
PATH = ${root}/opt/cross/${arch}-linux-musl/bin:${PATH}
|
||||
|
@ -5,7 +5,7 @@ build: ncurses libevent
|
||||
wget -c $url
|
||||
[ -d tmux-$v ] || tar xzf tmux-$v.tar.gz
|
||||
cd tmux-$v
|
||||
CC=$CC ./configure --prefix="$root" LDFLAGS=-static \
|
||||
CFLAGS="-I$libcroot/include/ncursesw" || return 1
|
||||
CC=$CC ./configure --prefix="$root" LDFLAGS="$optldflags -static" \
|
||||
CFLAGS="$optcflags -I$libcroot/include/ncursesw" || return 1
|
||||
make -j$nprocs || return 1
|
||||
make install || return 1
|
||||
|
Loading…
Reference in New Issue
Block a user