-
Notifications
You must be signed in to change notification settings - Fork 109
Split --link-flag #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Preferably we could put libraries we link against in the package manifest under Would adding the required libraries in |
The Line 517 in c5ef60d
|
I didn't know about |
In my use case, building on macOS worked but not on Linux. @awvwgk, your suggestion works on Linux but breaks the macOS build. For now, I think we have to come up with a way to use different |
I agree with @rouson that having the option to specify separately |
Haven't carefully read this discussion yet but I |
|
Description
I believe that
fpm
's current--link-flag
argument needs to be split into two arguments named something like--link-flag
(same as before) and--link-lib
, where a concatenated list of any--link-lib
arguments would be placed at the end of the resulting link line. The motivating use case is explained below.I'm working on a shell-script installer for a new package. The installer first installs the prerequisite GASNet-EX, which in turn defines several
GASNET_*
environment variables for use in building and linking against GASNet-EX. After installing GASNet-EX on macOS, afpm
command of the following form works to build the new package and link it against GASNet-EX:where
GASNET_LIBS
contains the-L
and-l
flags for linking against GASNet-EX.On Ubuntu, the above command fails, but if I copy the resulting
gfortran
link command and reuse it with $GASNET_LIBS moved to the tail end, linking succeeds.Expected Behaviour
Successful linking.
Version of fpm
c5ef60d
Platform and Architecture
Ubuntu via GitHub Action
Additional Information
No response
The text was updated successfully, but these errors were encountered: