You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building several libraries for which I have some linker options that need to be passed to autoconf configure scripts so that their tests for detecting compiler features can be built successfully. The problem: If I pass everything via linkopts, those linker options get propagated up the final target where I am getting duplicate symbol errors.
How should I work around this? Perhaps I should be setting LDFLAGS directly so that the tests in the configure script build without passing the linker option to my final target multiple times?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am building several libraries for which I have some linker options that need to be passed to autoconf configure scripts so that their tests for detecting compiler features can be built successfully. The problem: If I pass everything via
linkopts
, those linker options get propagated up the final target where I am getting duplicate symbol errors.How should I work around this? Perhaps I should be setting
LDFLAGS
directly so that the tests in the configure script build without passing the linker option to my final target multiple times?Beta Was this translation helpful? Give feedback.
All reactions