bug-libtool
[Top][All Lists]
Advanced

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

Bug: linking shared libraries on Cygwin results in undefined references


From: Bart Van Assche
Subject: Bug: linking shared libraries on Cygwin results in undefined references to __stack_chck_guard for code compiled with -fstack-protector
Date: Sat, 15 May 2010 09:07:49 +0200

This behavior has been observed with libtool version 2.2.6.

The patch below fixes this by passing -f flags to the linker:

Index: ltmain.sh
===================================================================
--- ltmain.sh
+++ ltmain.sh
@@ -4576,7 +4576,7 @@
        continue
        ;;

-      
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+      
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads|-f*)
        compiler_flags="$compiler_flags $arg"
        func_append compile_command " $arg"
        func_append finalize_command " $arg"

reply via email to

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