Skip to content
Snippets Groups Projects
Verified Commit 2f119f29 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Remove unnecessary -lm

parent 917dcda0
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment