[llvm-commits] [llvm] r65517 - in /llvm/trunk: Makefile.rules bindings/ocaml/Makefile.ocaml docs/MakefileGuide.html unittests/Makefile.unittest

Evan Cheng echeng at apple.com
Thu Feb 26 08:55:43 PST 2009


This breaks Apple style build:

ld: unknown option: -export-dynamic
collect2: ld returned 1 exit status

Evan

On Feb 25, 2009, at 11:44 PM, Nick Lewycky wrote:

> # Adjust linker flags for building an executable
> +ifndef ($(OS),Darwin)
> ifdef TOOLNAME
> ifdef EXAMPLE_TOOL
> -  LD.Flags += -rpath $(ExmplDir) -export-dynamic
> +  LD.Flags += -Wl,-rpath -Wl,$(ExmplDir) -export-dynamic
> else
> -  LD.Flags += -rpath $(ToolDir) -export-dynamic
> +  LD.Flags += -Wl,-rpath -Wl,$(ToolDir) -export-dynamic
> +endif
> endif
> endif




More information about the llvm-commits mailing list