diff options
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools/files/shared-libs-avoid-linking-.so-as-executable.patch')
-rw-r--r-- | meta-oe/recipes-support/multipath-tools/files/shared-libs-avoid-linking-.so-as-executable.patch | 44 |
1 files changed, 25 insertions, 19 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/shared-libs-avoid-linking-.so-as-executable.patch b/meta-oe/recipes-support/multipath-tools/files/shared-libs-avoid-linking-.so-as-executable.patch index ae6bb89a7..88579e6aa 100644 --- a/meta-oe/recipes-support/multipath-tools/files/shared-libs-avoid-linking-.so-as-executable.patch +++ b/meta-oe/recipes-support/multipath-tools/files/shared-libs-avoid-linking-.so-as-executable.patch | |||
@@ -14,36 +14,42 @@ Upstream-Status: Inappropriate [OE specific, -pie shouldn't be in CFLAGS?!] | |||
14 | 14 | ||
15 | Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> | 15 | Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> |
16 | --- | 16 | --- |
17 | libmpathpersist/Makefile | 2 +- | 17 | diff --git a/libmpathcmd/Makefile b/libmpathcmd/Makefile |
18 | libmultipath/Makefile | 2 +- | 18 | index 457c4ca..f68c82c 100644 |
19 | 2 files changed, 2 insertions(+), 2 deletions(-) | 19 | --- a/libmpathcmd/Makefile |
20 | 20 | +++ b/libmpathcmd/Makefile | |
21 | @@ -9,7 +9,7 @@ OBJS = mpath_cmd.o | ||
22 | all: $(LIBS) | ||
23 | |||
24 | $(LIBS): $(OBJS) | ||
25 | - $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS) $(LIBDEPS) | ||
26 | + $(CC) $(LDFLAGS) $(CFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) | ||
27 | $(LN) $@ $(DEVLIB) | ||
28 | |||
29 | install: $(LIBS) | ||
21 | diff --git a/libmpathpersist/Makefile b/libmpathpersist/Makefile | 30 | diff --git a/libmpathpersist/Makefile b/libmpathpersist/Makefile |
22 | index c4ec1c5..790692a 100644 | 31 | index 6e43427..2486302 100644 |
23 | --- a/libmpathpersist/Makefile | 32 | --- a/libmpathpersist/Makefile |
24 | +++ b/libmpathpersist/Makefile | 33 | +++ b/libmpathpersist/Makefile |
25 | @@ -20,7 +20,7 @@ all: $(LIBS) | 34 | @@ -15,7 +15,7 @@ all: $(LIBS) |
26 | 35 | ||
27 | $(LIBS): | 36 | $(LIBS): |
28 | $(CC) -Wall -fPIC -c $(CFLAGS) *.c | 37 | $(CC) -c $(CFLAGS) *.c |
29 | - $(CC) -shared $(LIBDEPS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS) | 38 | - $(CC) $(LDFLAGS) $(SHARED_FLAGS) $(LIBDEPS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS) |
30 | + $(CC) $(LIBDEPS) $(CFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) | 39 | + $(CC) $(LDFLAGS) $(CFLAGS) $(SHARED_FLAGS) $(LIBDEPS) -Wl,-soname=$@ -o $@ $(OBJS) |
31 | ln -s $(LIBS) $(DEVLIB) | 40 | $(LN) $(LIBS) $(DEVLIB) |
32 | $(GZIP) mpath_persistent_reserve_in.3 > mpath_persistent_reserve_in.3.gz | 41 | $(GZIP) mpath_persistent_reserve_in.3 > mpath_persistent_reserve_in.3.gz |
33 | $(GZIP) mpath_persistent_reserve_out.3 > mpath_persistent_reserve_out.3.gz | 42 | $(GZIP) mpath_persistent_reserve_out.3 > mpath_persistent_reserve_out.3.gz |
34 | diff --git a/libmultipath/Makefile b/libmultipath/Makefile | 43 | diff --git a/libmultipath/Makefile b/libmultipath/Makefile |
35 | index fc0f3d6..2287d91 100644 | 44 | index 495cebe..752bcc0 100644 |
36 | --- a/libmultipath/Makefile | 45 | --- a/libmultipath/Makefile |
37 | +++ b/libmultipath/Makefile | 46 | +++ b/libmultipath/Makefile |
38 | @@ -55,7 +55,7 @@ endif | 47 | @@ -55,7 +55,7 @@ OBJS = memory.o parser.o vector.o devmapper.o callout.o \ |
39 | all: $(LIBS) | 48 | all: $(LIBS) |
40 | 49 | ||
41 | $(LIBS): $(OBJS) | 50 | $(LIBS): $(OBJS) |
42 | - $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS) $(LIBDEPS) | 51 | - $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ $(CFLAGS) -o $@ $(OBJS) $(LIBDEPS) |
43 | + $(CC) $(LDFLAGS) $(CFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) | 52 | + $(CC) $(LDFLAGS) $(CFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) |
44 | ln -sf $@ $(DEVLIB) | 53 | $(LN) $@ $(DEVLIB) |
45 | 54 | ||
46 | install: | 55 | install: |
47 | -- | ||
48 | 2.11.0 | ||
49 | |||