[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] maint: tests: fix library position in link line for building sha
From: |
Nick Alcock |
Subject: |
[PATCH] maint: tests: fix library position in link line for building shared lib |
Date: |
Thu, 02 Oct 2014 15:26:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
* init.cfg (gcc_shared_): -ldl has to be positioned after the object
files that may rely upon it. (Fixes tests/cp/nfs-removal-race.sh.)
---
init.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init.cfg b/init.cfg
index 725ee12..3e74e87 100644
--- a/init.cfg
+++ b/init.cfg
@@ -520,7 +520,7 @@ gcc_shared_()
local out=$2
shift 2 || return 1
- $CC -Wall -shared --std=gnu99 -fPIC -ldl -O2 $* "$in" -o "$out"
+ $CC -Wall -shared --std=gnu99 -fPIC -O2 $* "$in" -o "$out" -ldl
}
# There are a myriad of ways to build shared libs,
--
2.1.0.182.g1aa0b9a.dirty
- [PATCH] maint: tests: fix library position in link line for building shared lib,
Nick Alcock <=