[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [bug #52674] Correcting extra linking warnings during c
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [bug #52674] Correcting extra linking warnings during compilation |
Date: |
Fri, 15 Dec 2017 11:55:50 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
URL:
<http://savannah.gnu.org/bugs/?52674>
Summary: Correcting extra linking warnings during compilation
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Fri 15 Dec 2017 05:55:48 PM CET
Category: Installation
Severity: 3 - Normal
Item Group: Addition(s)
Status: Postponed
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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):
clang: \cf4 warning: \cf2 argument unused during compilation: '-pthread'
[-Wunused-command-line-argument]\
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):
ld: warning: directory not found for option '-L../../lib'
ld: warning: directory not found for option '-L../lib'
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52674>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-devel] [bug #52674] Correcting extra linking warnings during compilation,
Mohammad Akhlaghi <=