Ports: Remove/replace hardcoded i686-pc-serenity-{gcc,g++,ar,ranlib}

Except in the Lua port's Makefile patch, I couldn't figure this out...
This commit is contained in:
Linus Groh 2021-03-11 21:46:53 +01:00 committed by Andreas Kling
parent f9cf6bfce1
commit 7cb9237be9
Notes: sideshowbarker 2024-07-18 21:25:09 +09:00
9 changed files with 11 additions and 8 deletions

View file

@ -7,6 +7,8 @@ export SERENITY_ARCH=i686
export SERENITY_BUILD_DIR="${SERENITY_ROOT}/Build/${SERENITY_ARCH}"
export CC=i686-pc-serenity-gcc
export CXX=i686-pc-serenity-g++
export AR=i686-pc-serenity-ar
export RANLIB=i686-pc-serenity-ranlib
export PATH=$SERENITY_ROOT/Toolchain/Local/i686/bin:$PATH
packagesdb="${SERENITY_BUILD_DIR}/packages.db"

View file

@ -11,7 +11,7 @@ auth_opts="--keyring ./gnu-keyring.gpg dmidecode-${version}.tar.xz.sig"
install() {
run make clean
run make CC=i686-pc-serenity-gcc
run make
}
post_install() {

View file

@ -6,5 +6,5 @@ useconfigure=true
depends=pcre2
configure() {
run ./"$configscript" CC=i686-pc-serenity-gcc
run ./"$configscript"
}

View file

@ -2,4 +2,4 @@
port=figlet
version=2.2.5
files="http://ftp.figlet.org/pub/figlet/program/unix/figlet-${version}.tar.gz figlet-${version}.tar.gz d88cb33a14f1469fff975d021ae2858e"
makeopts="CC=i686-pc-serenity-gcc LD=i686-pc-serenity-gcc"
makeopts="CC=${CC} LD=${CC}"

View file

@ -3,4 +3,4 @@ port=klong
version=20190926
files="http://t3x.org/klong/klong20190926.tgz klong20190926.tgz"
useconfigure=false
workdir=klong
klong

View file

@ -3,7 +3,7 @@
@@ -1,12 +1,12 @@
CFLAGS= -g -Wall -pedantic -O3
-CC= cc $(CFLAGS)
+CC= i686-pc-serenity-gcc $(CFLAGS)
+CC:= $(CC) $(CFLAGS)
V= 20190330
R= 20190926

View file

@ -22,11 +22,12 @@ diff -Naur lua-5.3.5/src/Makefile lua-5.3.5.serenity/src/Makefile
LUA_A= liblua.a
CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
@@ -124,6 +124,13 @@
@@ -124,6 +124,14 @@
solaris:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_REENTRANT" SYSLIBS="-ldl"
+serenity:
+ # FIXME: Replace these with $CC, $AR, $RANLIB
+ $(MAKE) $(ALL) \
+ CC="i686-pc-serenity-gcc -std=gnu99" \
+ AR="i686-pc-serenity-ar rcu" \

View file

@ -4,7 +4,7 @@ version=1.8.2
files="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz ninja-v${version}.tar.gz"
build() {
CXX=i686-pc-serenity-g++ CXXFLAGS="--sysroot=${SERENITY_BUILD_DIR}/Root" \
CXXFLAGS="--sysroot=${SERENITY_BUILD_DIR}/Root" \
LDFLAGS="--sysroot=${SERENITY_BUILD_DIR}/Root" \
# platform=linux is close enough.
run ./configure.py --bootstrap --platform=linux

View file

@ -6,7 +6,7 @@ files="https://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyschem
useconfigure=false
build() {
run make scheme CC="i686-pc-serenity-gcc -fpic -pedantic" SYS_LIBS= FEATURES='-DUSE_NO_FEATURES=1 -DInitFile=\"/usr/local/include/tinyscheme/init.scm\"'
run make scheme CC="${CC} -fpic -pedantic" SYS_LIBS= FEATURES='-DUSE_NO_FEATURES=1 -DInitFile=\"/usr/local/include/tinyscheme/init.scm\"'
}
install() {