summaryrefslogtreecommitdiffstats
path: root/patches/policycoreutils-2.1.13/0003-makefile-remove-host-path-from-list-of-linker-search.patch
blob: 4c7c124c966a1e56356fc86b1e8a5e0d352b9aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Tue, 15 Jan 2013 11:13:24 +0100
Subject: [PATCH] makefile: remove host path from list of linker search dirs

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 load_policy/Makefile      |    2 +-
 newrole/Makefile          |    2 +-
 run_init/Makefile         |    2 +-
 sandbox/Makefile          |    2 +-
 secon/Makefile            |    2 +-
 semodule/Makefile         |    2 +-
 semodule_expand/Makefile  |    2 +-
 semodule_link/Makefile    |    2 +-
 semodule_package/Makefile |    2 +-
 sestatus/Makefile         |    2 +-
 setfiles/Makefile         |    2 +-
 setsebool/Makefile        |    2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/load_policy/Makefile b/load_policy/Makefile
index fb2dcae..9478c0d 100644
--- a/load_policy/Makefile
+++ b/load_policy/Makefile
@@ -7,7 +7,7 @@ LOCALEDIR ?= /usr/share/locale
 
 CFLAGS ?= -Werror -Wall -W
 override CFLAGS += $(LDFLAGS) -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
-LDLIBS += -lsepol -lselinux -L$(PREFIX)/lib
+LDLIBS += -lsepol -lselinux
 
 TARGETS=$(patsubst %.c,%,$(wildcard *.c))
 
diff --git a/newrole/Makefile b/newrole/Makefile
index 734b162..e9834a3 100644
--- a/newrole/Makefile
+++ b/newrole/Makefile
@@ -23,7 +23,7 @@ VERSION = $(shell cat ../VERSION)
 CFLAGS ?= -Werror -Wall -W
 EXTRA_OBJS =
 override CFLAGS += -DVERSION=\"$(VERSION)\" $(LDFLAGS) -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
-LDLIBS += -lselinux -L$(PREFIX)/lib
+LDLIBS += -lselinux
 ifeq ($(PAMH), /usr/include/security/pam_appl.h)
 	override CFLAGS += -DUSE_PAM
 	EXTRA_OBJS += hashtab.o
diff --git a/run_init/Makefile b/run_init/Makefile
index 0949085..da45cc2 100644
--- a/run_init/Makefile
+++ b/run_init/Makefile
@@ -10,7 +10,7 @@ AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null)
 
 CFLAGS ?= -Werror -Wall -W
 override CFLAGS += -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
-LDLIBS += -lselinux -L$(PREFIX)/lib
+LDLIBS += -lselinux
 ifeq ($(PAMH), /usr/include/security/pam_appl.h)
 	override CFLAGS += -DUSE_PAM
 	LDLIBS += -lpam -lpam_misc
diff --git a/sandbox/Makefile b/sandbox/Makefile
index fcaef50..d0a7d5a 100644
--- a/sandbox/Makefile
+++ b/sandbox/Makefile
@@ -8,7 +8,7 @@ MANDIR ?= $(PREFIX)/share/man
 LOCALEDIR ?= /usr/share/locale
 SHAREDIR ?= $(PREFIX)/share/sandbox
 override CFLAGS += $(LDFLAGS) -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra -W
-LDLIBS += -lcgroup -lselinux -lcap-ng -L$(LIBDIR)
+LDLIBS += -lcgroup -lselinux -lcap-ng
 SEUNSHARE_OBJS = seunshare.o
 
 all: sandbox seunshare sandboxX.sh start
diff --git a/secon/Makefile b/secon/Makefile
index 4bd6e18..1f074ff 100644
--- a/secon/Makefile
+++ b/secon/Makefile
@@ -9,7 +9,7 @@ WARNS=-Werror -W -Wall -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wca
 VERSION = $(shell cat ../VERSION)
 CFLAGS ?= $(WARNS) -O1
 override CFLAGS += -DVERSION=\"$(VERSION)\"
-LDLIBS = -lselinux -L$(LIBDIR)
+LDLIBS = -lselinux
 
 all: secon
 
diff --git a/semodule/Makefile b/semodule/Makefile
index e45b705..5ac4393 100644
--- a/semodule/Makefile
+++ b/semodule/Makefile
@@ -7,7 +7,7 @@ LIBDIR ?= $(PREFIX)/lib
 
 CFLAGS ?= -Werror -Wall -W
 override CFLAGS +=
-LDLIBS = -lsepol -lselinux -lsemanage -L$(LIBDIR)
+LDLIBS = -lsepol -lselinux -lsemanage
 SEMODULE_OBJS = semodule.o
 
 all: semodule
diff --git a/semodule_expand/Makefile b/semodule_expand/Makefile
index 9bfecdf..9d9c3c9 100644
--- a/semodule_expand/Makefile
+++ b/semodule_expand/Makefile
@@ -7,7 +7,7 @@ MANDIR ?= $(PREFIX)/share/man
 
 CFLAGS ?= -Werror -Wall -W
 override CFLAGS +=
-LDLIBS = -lsepol -lselinux -L$(LIBDIR)
+LDLIBS = -lsepol -lselinux
 
 all: semodule_expand
 
diff --git a/semodule_link/Makefile b/semodule_link/Makefile
index f8fc271..cbb7cb7 100644
--- a/semodule_link/Makefile
+++ b/semodule_link/Makefile
@@ -7,7 +7,7 @@ LIBDIR ?= $(PREFIX)/lib
 
 CFLAGS ?= -Werror -Wall -W
 override CFLAGS +=
-LDLIBS = -lsepol -lselinux -L$(LIBDIR)
+LDLIBS = -lsepol -lselinux
 
 all: semodule_link
 
diff --git a/semodule_package/Makefile b/semodule_package/Makefile
index dad21ec..9238014 100644
--- a/semodule_package/Makefile
+++ b/semodule_package/Makefile
@@ -7,7 +7,7 @@ MANDIR ?= $(PREFIX)/share/man
 
 CFLAGS ?= -Werror -Wall -W
 override CFLAGS +=
-LDLIBS = -lsepol -lselinux -L$(LIBDIR)
+LDLIBS = -lsepol -lselinux
 
 all: semodule_package semodule_unpackage
 
diff --git a/sestatus/Makefile b/sestatus/Makefile
index 46d4b81..1007d64 100644
--- a/sestatus/Makefile
+++ b/sestatus/Makefile
@@ -7,7 +7,7 @@ LIBDIR ?= $(PREFIX)/lib
 
 CFLAGS = -Werror -Wall -W
 override CFLAGS += -D_FILE_OFFSET_BITS=64
-LDLIBS = -lselinux -L$(LIBDIR)
+LDLIBS = -lselinux
 
 all: sestatus
 
diff --git a/setfiles/Makefile b/setfiles/Makefile
index 579dc34..33f1c11 100644
--- a/setfiles/Makefile
+++ b/setfiles/Makefile
@@ -10,7 +10,7 @@ ABORT_ON_ERRORS=$(shell grep "^\#define ABORT_ON_ERRORS" setfiles.c | awk -S '{
 
 CFLAGS = -g -Werror -Wall -W
 override CFLAGS +=
-LDLIBS = -lselinux -lsepol -L$(LIBDIR)
+LDLIBS = -lselinux -lsepol
 
 ifeq ($(AUDITH), /usr/include/libaudit.h)
 	override CFLAGS += -DUSE_AUDIT
diff --git a/setsebool/Makefile b/setsebool/Makefile
index 5fb13f2..f4bde6b 100644
--- a/setsebool/Makefile
+++ b/setsebool/Makefile
@@ -8,7 +8,7 @@ BASHCOMPLETIONDIR ?= $(DESTDIR)/etc/bash_completion.d/
 
 CFLAGS ?= -Werror -Wall -W
 override CFLAGS +=
-LDLIBS = -lsepol -lselinux -lsemanage -L$(LIBDIR)
+LDLIBS = -lsepol -lselinux -lsemanage
 SETSEBOOL_OBJS = setsebool.o
 
 BASHCOMPLETIONS=setsebool-bash-completion.sh