mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-26 14:32:11 -08:00
Split up the options into additional flags for the linker and additional libraries. Quoting from issue #636: > Here's an example, attempting to link one object file named example.o into an executable named example. Libcrypto here is superfluous and should be removed by --as-needed: ``` LDFLAGS="-Wl,--as-needed" LIBS="-lcrypto" gcc ${LDFLAGS} ${LIBS} example.o -o example # doesn't link libcrypto! gcc example.o ${LDFLAGS} ${LIBS} -o example # doesn't honor --as-needed! gcc ${LDFLAGS} example.o ${LIBS} -o example # works great! ``` > In short, the placement of your -l<foo> flags differs from that of all the other linker flags. Since ECL is only providing one big variable ld-flags for all of the linker flags, there's no correct way to pass in options like --as-needed and -l<foo> at the same time. Fixes #636. |
||
|---|---|---|
| .. | ||
| bdwgc | ||
| c | ||
| clos | ||
| cmp | ||
| doc | ||
| ecl | ||
| gmp | ||
| h | ||
| libffi | ||
| lsp | ||
| tests | ||
| util | ||
| aclocal.m4 | ||
| bare.lsp.in | ||
| compile.lsp.in | ||
| config.guess | ||
| config.sub | ||
| configure | ||
| configure.ac | ||
| install.sh | ||
| Makefile.in | ||