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
The link flags are put before the archive in the command line, causing the link flags to be ignored by the linker (at least for GCC).
With at least FPM 0.10.0 and 0.10.1, regardless of operating system (Linux and Windows tried), and using Ffilesystem project (probably any project has this issue):
scivision
changed the title
ordering of link flags before object, causing flag to be ignored by linker
ordering of link flags before archive, thus flag ignored by linker
Apr 7, 2024
Description
The link flags are put before the archive in the command line, causing the link flags to be ignored by the linker (at least for GCC).
With at least FPM 0.10.0 and 0.10.1, regardless of operating system (Linux and Windows tried), and using Ffilesystem project (probably any project has this issue):
by either:
or
fpm build --link-flags "-lm"
results in command:
Windows:
Linux:
Expected Behaviour
I expect the link flag "-lm" (or say -lUserenv for Windows) to be AFTER the object file or archive, otherwise the linker ignores the link flag
Version of fpm
0.10.1, 0.10.0
Platform and Architecture
at least Linux, Windows
Additional Information
No response
The text was updated successfully, but these errors were encountered: