mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Remove unnecessary -lm
This commit is contained in:
parent
917dcda07f
commit
2f119f29e3
@ -111,7 +111,7 @@ elif args == ["--ldflags"]:
|
||||
elif args == ["--libdir"]:
|
||||
print(prefix + "/lib")
|
||||
elif args == ["--system-libs"]:
|
||||
print("-lpthread -lm")
|
||||
print("")
|
||||
elif args == ["--targets-built"]:
|
||||
print("X86")
|
||||
elif args[0] == "--libs":
|
||||
|
||||
@ -21,7 +21,7 @@ function recipe_build {
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
set -x
|
||||
"${CXX}" -I "$sysroot/include" -L "$sysroot/lib" cairodemo.c -o cairodemo -lorbital -lcairo -lpixman-1 -lfreetype -lpng -lz -lm
|
||||
"${CXX}" -I "$sysroot/include" -L "$sysroot/lib" cairodemo.c -o cairodemo -lorbital -lcairo -lpixman-1 -lfreetype -lpng -lz
|
||||
set +x
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@ function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export CFLAGS="-static -nostdinc -I $sysroot/include -I /usr/lib/gcc/x86_64-unknown-redox/7.0.1/include/ -nostdlib -L $sysroot/lib"
|
||||
export CRT="$sysroot/lib/crt0.o"
|
||||
export CLIBS="-lc -lm"
|
||||
export CLIBS="-lc"
|
||||
make all -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ function recipe_build {
|
||||
sed -i "s/^#define Netdb_name_t.*/#define Netdb_name_t const char*/" config.h # XXX
|
||||
sed -i 's/#define Strerror(e).*$/#define Strerror(e) strerror(e)/' config.h #
|
||||
echo "#define HAS_VPRINTF" >> config.h
|
||||
make LIBS=-lm -j"$(nproc)"
|
||||
make -j"$(nproc)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user