Remove unnecessary -lm

This commit is contained in:
Jeremy Soller 2019-01-07 19:09:51 -07:00
parent 917dcda07f
commit 2f119f29e3
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
4 changed files with 4 additions and 4 deletions

View File

@ -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":

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}