Closed houzi- closed 8 years ago
LIBS="-ldl -lz" LDFLAGS="-Wl,-static -static -static-libgcc -s"
undefined reference to
is my favorite error. These are symbols that the linker is looking for in order to do the final compilation. If you look at the errors, it's pretty self explanatory. You can see it can't find dlopen or dlclose. These are provided by libdl, or -ldl. You can also see it's looking for zlib_stateful_finish. Well right there it tells you 'zlib', so that would be -lz. Sometimes they're not so obvious. I literally will just google it to see what library which symbols come from.
There's is (hopefully) a planned change to make uclibc more like musl, in that there will be a single system library with all the symbols, this being libc. So hopefully in the future, some of these we won't have to worry about other system libraries like libdl, pthread, librt etc.
@rampageX @lancethepants Thanks of all
Hi Lance
i use to the compile
error