mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-01-27 06:11:52 +00:00
Laurent Bigonville patch to allow overriding PATH Definitions in Makefiles
This commit is contained in:
parent
56b49ab711
commit
a8b3340288
@ -3,7 +3,7 @@
|
||||
#
|
||||
PREFIX ?= $(DESTDIR)/usr
|
||||
BINDIR=$(PREFIX)/bin
|
||||
LIBDIR=$(PREFIX)/lib
|
||||
LIBDIR ?= $(PREFIX)/lib
|
||||
INCLUDEDIR ?= $(PREFIX)/include
|
||||
|
||||
CFLAGS ?= -g -Wall -W -Werror -O2 -pipe
|
||||
|
@ -18,7 +18,7 @@ RUBYLIBVER ?= $(shell $(RUBY) -e 'print RUBY_VERSION.split(".")[0..1].join(".")'
|
||||
RUBYPLATFORM ?= $(shell $(RUBY) -e 'print RUBY_PLATFORM')
|
||||
RUBYINC ?= $(shell pkg-config --cflags ruby)
|
||||
RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
|
||||
LIBBASE=$(shell basename $(LIBDIR))
|
||||
LIBBASE ?= $(shell basename $(LIBDIR))
|
||||
|
||||
LDFLAGS ?= -lpcre -lpthread
|
||||
|
||||
|
@ -3,7 +3,7 @@ PREFIX ?= $(DESTDIR)/usr
|
||||
INCLUDEDIR ?= $(PREFIX)/include
|
||||
LIBDIR ?= $(PREFIX)/lib
|
||||
SHLIBDIR ?= $(DESTDIR)/lib
|
||||
LIBBASE=$(shell basename $(LIBDIR))
|
||||
LIBBASE ?= $(shell basename $(LIBDIR))
|
||||
|
||||
VERSION = $(shell cat ../VERSION)
|
||||
LIBVERSION = 1
|
||||
|
@ -1,7 +1,10 @@
|
||||
# Installation directories.
|
||||
PREFIX ?= ${DESTDIR}/usr
|
||||
SYSCONFDIR ?= ${DESTDIR}/etc
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
SHAREDIR ?= $(PREFIX)/share/system-config-selinux
|
||||
DATADIR ?= $(PREFIX)/share
|
||||
MANDIR ?= $(PREFIX)/share/man
|
||||
|
||||
TARGETS= \
|
||||
booleansPage.py \
|
||||
|
@ -5,7 +5,7 @@ MANDIR = $(PREFIX)/share/man
|
||||
ETCDIR ?= $(DESTDIR)/etc
|
||||
LIBDIR ?= $(PREFIX)/lib
|
||||
|
||||
CFLAGS = -Werror -Wall -W
|
||||
CFLAGS ?= -Werror -Wall -W
|
||||
override CFLAGS += -I$(PREFIX)/include -D_FILE_OFFSET_BITS=64
|
||||
LDLIBS = -lselinux -L$(LIBDIR)
|
||||
|
||||
|
@ -8,7 +8,7 @@ AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null)
|
||||
PROGRESS_STEP=$(shell grep "^\#define STAR_COUNT" restore.h | awk -S '{ print $$3 }')
|
||||
ABORT_ON_ERRORS=$(shell grep "^\#define ABORT_ON_ERRORS" setfiles.c | awk -S '{ print $$3 }')
|
||||
|
||||
CFLAGS = -g -Werror -Wall -W
|
||||
CFLAGS ?= -g -Werror -Wall -W
|
||||
override CFLAGS += -I$(PREFIX)/include
|
||||
LDLIBS = -lselinux -lsepol -L$(LIBDIR)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user