D
Deleted member 66267
Guest
This piece of software I ported from Linux. It expects all of the libraries to be in /usr/lib. It's not written in a programming language I know so I can only modify the make file to make it build. The software generates C source files and build it using a C compiler to get the finally executable. Just grab the generated C sources and build manually is not an option, to be clear. The software allows passing of linker flags to it directly via -Wl, so I have something like that:
alias foo='foo -Wl -L/usr/local/lib'
I wonder if there is any way to force the linker to search in /usr/local/lib globally. This alias above only works when using the shell but not in a make file. The stupid make file actually check for the existent of the 'foo' binary and don't use the value I specified with FOO='foo -Wl -L/usr/local/lib'
p/s: I mean the linker to search this location at compile time, not run time, please don't confuse between them.
alias foo='foo -Wl -L/usr/local/lib'
I wonder if there is any way to force the linker to search in /usr/local/lib globally. This alias above only works when using the shell but not in a make file. The stupid make file actually check for the existent of the 'foo' binary and don't use the value I specified with FOO='foo -Wl -L/usr/local/lib'
p/s: I mean the linker to search this location at compile time, not run time, please don't confuse between them.