GNU Astronomy Utilities - Bugs: bug #52674, Correcting extra linking warnings...
You are not allowed to post comments on this tracker with your current authentication level.
bug #52674: Correcting extra linking warnings during compilation
Submitter: | Mohammad Akhlaghi <makhlaghi> | ||
Submitted: | Fri 15 Dec 2017 04:55:48 PM UTC | ||
Category: | Installation | Severity: | 3 - Normal |
Item Group: | Addition(s) | Status: | Postponed |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
When linking the libraries, currently Gnuastro uses the `-pthread' option two times! This can lead to the following linking warning on some systems (this is from Mac OS X):
Another strange source of linker warning is that the two directories `../lib' and `../../lib' are used with `-L' for both programs and the library. However, only the first is necessary for the library and the second is necessary for the programs. On the system above, we get this linker warning (first when finalizing the libraries, the second after each program):
I can't figure out why it is doing this!?! In `configure.ac', we only add `$(top_builddir)/lib' to `LDFLAGS'!
It would be cleaner if we correct these warnings.
In particular, the second one may be a security issue: Since when building the libraries, it will first look into `../../lib' (outside of Gnuastro) and someone can put a bad library there to link against.