diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-01 17:32:58 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-01 17:32:58 +0000 |
commit | 4b09b7f9e65c3091edf55007b2783084a3fa8532 (patch) | |
tree | 62f5ce573887f28c7733c44a68f7ce399624e6a8 | |
parent | c0de11dda6f5421adae373dd5b5b2668d21c4079 (diff) | |
download | llvm-4b09b7f9e65c3091edf55007b2783084a3fa8532.zip llvm-4b09b7f9e65c3091edf55007b2783084a3fa8532.tar.gz llvm-4b09b7f9e65c3091edf55007b2783084a3fa8532.tar.bz2 |
Include the system libraries in the --ldflags options. This is required to
enable correctly linking on win32 libraries where additional dlls are
required. Patch contributed by Anton Korobeynikov. Release branch commit
authorized by Chris Lattner.
llvm-svn: 29440
-rw-r--r-- | llvm/tools/llvm-config/llvm-config.in.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.in.in b/llvm/tools/llvm-config/llvm-config.in.in index e83024e..0b30f90 100644 --- a/llvm/tools/llvm-config/llvm-config.in.in +++ b/llvm/tools/llvm-config/llvm-config.in.in @@ -47,6 +47,7 @@ my @TARGETS_BUILT = map { lc($_) } qw{@TARGETS_TO_BUILD@}; #---- begin Makefile values ---- my $CXXFLAGS = q{@LLVM_CXXFLAGS@}; my $LDFLAGS = q{@LLVM_LDFLAGS@}; +my $SYSTEM_LIBS = q{@LIBS@}; my $LLVM_BUILDMODE = q{@LLVM_BUILDMODE@}; #---- end Makefile values ---- @@ -109,7 +110,7 @@ foreach my $arg (@ARGV) { } elsif ($arg eq "--cxxflags") { $has_opt = 1; print "-I$INCLUDEDIR $CXXFLAGS\n"; } elsif ($arg eq "--ldflags") { - $has_opt = 1; print "-L$LIBDIR $LDFLAGS\n"; + $has_opt = 1; print "-L$LIBDIR $LDFLAGS $SYSTEM_LIBS\n"; } elsif ($arg eq "--libs") { $has_opt = 1; $want_libs = 1; } elsif ($arg eq "--libnames") { |