gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61192] BuildProg does not add the proper flags


From: Mohammad Akhlaghi
Subject: [bug #61192] BuildProg does not add the proper flags
Date: Mon, 20 Sep 2021 08:53:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

Follow-up Comment #1, bug #61192 (project gnuastro):

Thanks for reporting this Raul. The strange thing is that on my Arch
GNU/Linux, this doesn't happen and all Gnuastro's dependency libraries
(including the math library) are automatically linked when I run
BuildProgram.


gcc -Wall -O3 normalize-and-asinh-edited.c -I/usr/local/include -o
normalize-and-asinh-edited  /usr/local/lib/libgnuastro.so -L/usr/local/lib
-lgit2 -ltiff -ljpeg -lwcs -lcfitsio -lcurl -lbz2 -lz /usr/local/lib/libgsl.so
/usr/local/lib/libgslcblas.so -lm -lc -lpthread -pthread -Wl,-rpath
-Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib


The list of dependency libraries is created at configure time. We should see
why on Ubuntu, they are empty. Can you re-configure Gnuastro and send the line
above the "checking that generated files are newer than configure" (close to
the end, just before generating the Makefiles)? In particular, I want to see
the "linking flags (LDADD) ..." line. 


...
checking whether wctob works... guessing yes
checking whether wctob is declared... yes
linking flags (LDADD) ... -lgit2   -ltiff   -ljpeg   /usr/local/lib/libwcs.a  
/usr/local/lib/libcfitsio.a   -lcurl   -lbz2   -lz   /usr/local/lib/libgsl.a
/usr/local/lib/libgslcblas.a -lm   -lm   
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
...


If my guess is correct, this line should be empty for you!

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61192>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]