This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unable to disable shared-libraries


Hi All.

I am wanting to compile leptonica
(https://github.com/DanBloomberg/leptonica.git, branch => v1.71)
completely in static mode.


I have done the following :

############################################################################
./configure --prefix=/usr --enable-shared=no --enable-static=yes

make SHARED=no STATIC=yes CFLAGS='-g -O2 -nostartfiles -nodefaultlibs
-nostdlib -static' CXXFLAGS='-nostartfiles -nodefaultlibs -nostdlib
-static' CPPFLAGS='-nostartfiles -nodefaultlibs -nostdlib -static'
LIBS=' /newlib/newlib/libc.a'
############################################################################


But I still manage to land on the following :

############################################################################
*** Warning: Linking the shared library liblept.la against the
*** static library /newlib/newlib/libc.a is not portable!
############################################################################


Am I disabling the shared-flags correctly in gcc (doesn't seem so currently)?


Will be grateful for pointers.


Thanks and Regards,
Ajay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]