Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: build/linux/sysroot_ld_path.sh

Issue 12674012: Add library paths and rlink-paths for directories in the sysroot. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/linux/sysroot_ld_path.sh
===================================================================
--- build/linux/sysroot_ld_path.sh (revision 0)
+++ build/linux/sysroot_ld_path.sh (revision 0)
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Reads etc/ld.so.conf.d/*.conf and returns the appropriate linker flags.
+#
+# sysroot_ld_path.sh /abspath/to/sysroot
+#
+
+if [ $# -ne 1 ]; then
+ echo $0 /abspath/to/sysroot
+ exit 1
+fi
+
+echo $1 | grep -qs ' '
+if [ $? -eq 0 ]; then
+ echo $1 contains whitespace.
+ exit 1
+fi
+
+for entry in $(cat $1/etc/ld.so.conf.d/*.conf | grep ^/)
+do
+ entry=$1$entry
+ echo -L$entry
+ echo -Wl,-rpath-link=$entry
+done | xargs echo
Property changes on: build/linux/sysroot_ld_path.sh
___________________________________________________________________
Added: svn:eol-style
+ LF
Added: svn:executable
+ *
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698