mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
dev-lang/fbc: Simplify definition of xcflags and fblflags
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
This commit is contained in:
@@ -69,10 +69,12 @@ src_compile() {
|
||||
cd "${S}" || die "cd failed"
|
||||
fi
|
||||
|
||||
local xcflags=$(usex gpm "" "-DDISABLE_GPM")
|
||||
xcflags+=$(usex libffi "" " -DDISABLE_FFI")
|
||||
xcflags+=$(usex opengl "" " -DDISABLE_OPENGL")
|
||||
xcflags+=$(usex X "" " -DDISABLE_X11")
|
||||
local xcflags=(
|
||||
$(usex gpm "" "-DDISABLE_GPM")
|
||||
$(usex libffi "" " -DDISABLE_FFI")
|
||||
$(usex opengl "" " -DDISABLE_OPENGL")
|
||||
$(usex X "" " -DDISABLE_X11")
|
||||
)
|
||||
|
||||
# fbc automatically strips the executables it compiles; in order to avoid
|
||||
# creating striped executables, we override the fbc hardcoded linker "-s"
|
||||
@@ -81,10 +83,10 @@ src_compile() {
|
||||
# "--strip-debug" flag should be a safe option)
|
||||
local fblflags="-Wl --strip-debug "
|
||||
# fbc requires a space after the -Wl option
|
||||
fblflags+=$(echo "${LDFLAGS}" | sed 's/-Wl,/-Wl /g')
|
||||
fblflags+=${LDFLAGS//-Wl,/-Wl }
|
||||
|
||||
# Build fbc
|
||||
emake CFLAGS="${CFLAGS} ${xcflags}" FBC="${fbc}" FBCFLAGS="${fbcflags}" FBLFLAGS="${fblflags}"
|
||||
emake CFLAGS="${CFLAGS} ${xcflags[@]}" FBC="${fbc}" FBCFLAGS="${fbcflags}" FBLFLAGS="${fblflags}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
Reference in New Issue
Block a user