Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure libraries linked are listed after objects using them
The Ubuntu toolchain uses -Wl,--as-needed by default, which causes libraries to be dropped from the final binary if they aren't used. For portability, make sure that libraries are always listed on the linker commandline /after/ the objects that reference them. . This also avoids passing -l options to the compiler when compiling .o files.
- Loading branch information
4415066
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fangfufu I meant to push this on my fork and submit a pull request... This is a patch submitted by an Ubuntu/Debian developper for httpdirfs-fuse, which was originally posted here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939361
4415066
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcharaoui, I know I sound clueless, but what's the difference between using a pull request and merging directly into the master branch? I suppose a pull request allows a code review?
4415066
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, a pull request allows for discussion & further modification before a change is accepted (or not) into the master branch.
4415066
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am happy with this change, I did manage to fix it in 97ecbff, although this one makes things a bit clearer.