octave-maintainers
[Top][All Lists]
Advanced

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

Development branch mkoctfile missing compiler and linker options?


From: Jarno Rajahalme
Subject: Development branch mkoctfile missing compiler and linker options?
Date: Mon, 3 May 2010 10:19:58 -0700

Hi,

Using the development branch, it seems mkoctfile is using somewhat different 
compiler options than what is used when DLD-functions are compiled during the 
make of Octave itself.

In my case, the following options are missing:

Preprocessor options:
 -DHAVE_CONFIG_H -D_THREAD_SAFE -DPIC -I/Users/Shared/Development/octave/libgnu
Compiler options:
-Wall -W -Wshadow -Wold-style-cast -Wformat -pthread -fno-common
Linker options:
-L/Users/Shared/Development/octave/libgnu

Missing the libgnu includes used when building Octave can be fatal, as gnulib 
can redefine things like uint64_t. But I'm not exactly sure if the linker needs 
the libgnu, or if these symbols can be found from one of the Octave libraries 
being liked with. -W options are about warnings, so they are not critical. But 
missing -pthread can be.

Finally, when building for OpenMP, I have to manually add the linker option 
"-lgomp" to the mkoctfile call, even if Octave is configured with 
--enable-openmp.

Regards,

  Jarno


reply via email to

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