[llvm-commits] [llvm] r109385 - /llvm/trunk/Makefile.rules

NAKAMURA Takumi geek4civic at gmail.com
Wed Jul 28 09:46:28 PDT 2010


Nick,

I found this patch was incomplete. the improved one is attached.

with previous patch, the below is enabled on cygwin/mingw.
> ifneq ($(DARWIN_MAJVERS),4)
>   LD.Flags += $(RPATH) -Wl, at executable_path/../lib
> endif

I guess it would be less harmful but I did not forget former patch. XD


...Takumi



2010/7/26 Nick Lewycky <nicholas at mxc.ca>:
> Author: nicholas
> Date: Sun Jul 25 17:33:04 2010
> New Revision: 109385
>
> URL: http://llvm.org/viewvc/llvm-project?rev=109385&view=rev
> Log:
> Don't pass -export-dynamic to the linker on Cygwin and MinGW. These platforms
> accept the flag and do nothing but warn about it, cleverly bypassing our
> configure-based detection system. Patch by Takumi Nakamura!
>
> Modified:
>    llvm/trunk/Makefile.rules
>
> Modified: llvm/trunk/Makefile.rules
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=109385&r1=109384&r2=109385&view=diff
> ==============================================================================
> --- llvm/trunk/Makefile.rules (original)
> +++ llvm/trunk/Makefile.rules Sun Jul 25 17:33:04 2010
> @@ -618,7 +618,7 @@
>  endif
>
>  # Adjust linker flags for building an executable
> -ifneq ($(HOST_OS),Darwin)
> +ifneq ($(HOST_OS), $(filter $(HOST_OS), Darwin Cygwin MingW))
>  ifdef TOOLNAME
>   LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
>   ifdef EXAMPLE_TOOL
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
diff --git a/Makefile.rules b/Makefile.rules
index 0b0f02c..85d9a75 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -618,7 +618,8 @@ ifndef KEEP_SYMBOLS
 endif
 
 # Adjust linker flags for building an executable
-ifneq ($(HOST_OS), $(filter $(HOST_OS), Darwin Cygwin MingW))
+ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
+ifneq ($(HOST_OS), Darwin)
 ifdef TOOLNAME
   LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
   ifdef EXAMPLE_TOOL
@@ -632,6 +633,7 @@ ifneq ($(DARWIN_MAJVERS),4)
   LD.Flags += $(RPATH) -Wl, at executable_path/../lib
 endif
 endif
+endif
 
 
 #----------------------------------------------------------


More information about the llvm-commits mailing list