* [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
@ 2012-06-04 22:07 Guido Trentalancia
2012-06-04 22:51 ` Eric Paris
2012-06-06 14:34 ` Colin Walters
0 siblings, 2 replies; 8+ messages in thread
From: Guido Trentalancia @ 2012-06-04 22:07 UTC (permalink / raw)
To: eparis; +Cc: SELinux
Hello Eric !
>At the moment, the sugggested way to do with is to use:
>
>make DESTDIR=[some dir] install
That is not standard. Standard practice is to build first by typing "make" and only after the build has completed successfully eventually proceed with the installation by typing "make install" (with DESTDIR).
>I've never really seen something which can get it right 'all the
>time'. Fedora, and I assume other distros actually just use the git
>tree subdirectories. I feel like any such patch to handle this is
>going to have to be something set in the top level Makefile and will
>have to cause no difficulties for other workflows....
You can build with virtually everything on automated build systems, as long as you can enter it once. But with humans, I suppose, you need something standard and easy to remember...
Here is the missing patch which complements the previous one (they were intentionally splitted):
Allow standard compilation with separate installation of the SELinux
GIT development tree.
To build, just type "make".
To install (after successful build), just type "make install".
During installation, it is possible to pass the variables DESTDIR,
LIBDIR and SHLIBDIR to GNU make in order to fine tune the results.
Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
---
Makefile | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
--- selinux/Makefile 2011-09-09 20:12:55.977662144 +0200
+++ selinux-04062012/Makefile 2012-06-04 23:35:49.859339267 +0200
@@ -2,11 +2,21 @@ SUBDIRS=libsepol libselinux libsemanage
PYSUBDIRS=libselinux libsemanage
DISTCLEANSUBIDRS=libselinux libsemanage
+TOPDIR := $(shell pwd)
+
+CPPFLAGS ?= -I$(TOPDIR)/libselinux/include -I$(TOPDIR)/libsepol/include -I$(TOPDIR)/libsemanage/include
+LDFLAGS ?= -L$(TOPDIR)/libselinux/src -L$(TOPDIR)/libsepol/src -L$(TOPDIR)/libsemanage/src
+CFLAGS ?= $(CPPFLAGS)
+
ifeq ($(DEBUG),1)
- export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
- export LDFLAGS = -g
+ CFLAGS += -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
+ LDFLAGS += -g
endif
+export CPPFLAGS
+export CFLAGS
+export LDFLAGS
+
all install relabel clean test indent:
@for subdir in $(SUBDIRS); do
(cd $$subdir && $(MAKE) $@) || exit 1;
>On Mon, Jun 4, 2012 at 11:33 AM, Guido Trentalancia
><guido@trentalancia.com> wrote:
>> Do not ever link GIT development sources against static SELinux libraries that
>> are eventually already installed in the system library directory (LIBDIR), but
>> instead source the "fresh" local versions from the GIT development tree itself.
>>
>> This patch prevents build errors when SELinux is not already installed on a
>> system or even worse it prevents linking against previous (obsolete, buggy or even
>> insecure) versions of the libraries that might be found on the standard system
>> library directory as defined by the Makefile variable LIBDIR.
>>
>> It is intended only for the GIT development tree, therefore it should not be
>> applied to the individually released libraries or userspace tools, as it would
>> break their build (however, if released components are generated more or less
>> directly from the GIT development tree, it shouldn't be too difficult or time
>> consuming to process their Makefiles upon creation by using some sort of sed
>> script to revert linking from LIBDIR instead of relative local GIT tree library
>> subdirectories).
>>
>> Please note that similar problems do arise for the header files and the shared
>> libraries when building the GIT tree, although these problems can be avoided by
>> passing the appropriate compiler/linker options in CPPFLAGS, CFLAGS and LDFLAGS
>> to make so that the local headers and shared libraries files are used when
>> compiling/linking.
>>
>> Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
>>
>> ---
>> checkpolicy/Makefile | 2 +-
>> checkpolicy/test/Makefile | 2 +-
>> libselinux/src/Makefile | 2 +-
>> policycoreutils/mcstrans/src/Makefile | 2 +-
>> policycoreutils/mcstrans/utils/Makefile | 2 +-
>> policycoreutils/semodule_deps/Makefile | 2 +-
>> policycoreutils/sepolgen-ifgen/Makefile | 2 +-
>> 7 files changed, 7 insertions(+), 7 deletions(-)
>>
>> diff -pru selinux-04062012-original/checkpolicy/Makefile selinux-04062012/checkpolicy/Makefile
>> --- selinux-04062012-original/checkpolicy/Makefile 2011-09-09 20:12:55.978662153 +0200
>> +++ selinux-04062012/checkpolicy/Makefile 2012-06-04 14:04:44.954580741 +0200
>> @@ -19,7 +19,7 @@ CHECKOBJS = y.tab.o lex.yy.o queue.o mod
>> CHECKPOLOBJS = $(CHECKOBJS) checkpolicy.o
>> CHECKMODOBJS = $(CHECKOBJS) checkmodule.o
>>
>> -LDLIBS=$(LIBDIR)/libsepol.a -lfl
>> +LDLIBS=../libsepol/src/libsepol.a -lfl
>>
>> GENERATED=lex.yy.c y.tab.c y.tab.h
>>
>> diff -pru selinux-04062012-original/checkpolicy/test/Makefile selinux-04062012/checkpolicy/test/Makefile
>> --- selinux-04062012-original/checkpolicy/test/Makefile 2012-03-23 17:00:49.273045007 +0100
>> +++ selinux-04062012/checkpolicy/test/Makefile 2012-06-04 14:01:39.788487811 +0200
>> @@ -9,7 +9,7 @@ INCLUDEDIR ?= $(PREFIX)/include
>> CFLAGS ?= -g -Wall -W -Werror -O2 -pipe
>> override CFLAGS += -I$(INCLUDEDIR)
>>
>> -LDLIBS=-lfl -lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR)
>> +LDLIBS=-lfl -lselinux ../../libsepol/src/libsepol.a -L$(LIBDIR)
>>
>> all: dispol dismod
>>
>> diff -pru selinux-04062012-original/libselinux/src/Makefile selinux-04062012/libselinux/src/Makefile
>> --- selinux-04062012-original/libselinux/src/Makefile 2012-05-29 21:12:20.635265972 +0200
>> +++ selinux-04062012/libselinux/src/Makefile 2012-06-04 14:02:48.398135397 +0200
>> @@ -122,7 +122,7 @@ $(AUDIT2WHYLOBJ): audit2why.c
>> $(CC) $(filter-out -Werror, $(CFLAGS)) $(PYINC) -fPIC -DSHARED -c -o $@ $<
>>
>> $(AUDIT2WHYSO): $(AUDIT2WHYLOBJ)
>> - $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR) -Wl,-soname,$@
>> + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux ../../libsepol/src/libsepol.a -L$(LIBDIR) -Wl,-soname,$@
>>
>> %.o: %.c policy.h
>> $(CC) $(CFLAGS) $(TLSFLAGS) -c -o $@ $<
>> diff -pru selinux-04062012-original/policycoreutils/mcstrans/src/Makefile selinux-04062012/policycoreutils/mcstrans/src/Makefile
>> --- selinux-04062012-original/policycoreutils/mcstrans/src/Makefile 2011-09-09 20:12:56.040662607 +0200
>> +++ selinux-04062012/policycoreutils/mcstrans/src/Makefile 2012-06-04 14:06:54.356297716 +0200
>> @@ -28,7 +28,7 @@ override CFLAGS += -I../include -D_GNU_S
>> all: $(PROG)
>>
>> $(PROG): $(PROG_OBJS)
>> - $(CC) $(LDFLAGS) -pie -o $@ $^ -lselinux -lcap -lpcre $(LIBDIR)/libsepol.a
>> + $(CC) $(LDFLAGS) -pie -o $@ $^ -lselinux -lcap -lpcre ../../../libsepol/src/libsepol.a
>>
>> %.o: %.c
>> $(CC) $(CFLAGS) -fPIE -c -o $@ $<
>> diff -pru selinux-04062012-original/policycoreutils/mcstrans/utils/Makefile selinux-04062012/policycoreutils/mcstrans/utils/Makefile
>> --- selinux-04062012-original/policycoreutils/mcstrans/utils/Makefile 2011-09-09 20:12:56.041662614 +0200
>> +++ selinux-04062012/policycoreutils/mcstrans/utils/Makefile 2012-06-04 14:06:45.590585065 +0200
>> @@ -21,7 +21,7 @@ endif
>>
>> CFLAGS ?= -Wall
>> override CFLAGS += -I../src -D_GNU_SOURCE
>> -LDLIBS += -L../src ../src/mcstrans.o ../src/mls_level.o -lselinux -lpcre $(LIBDIR)/libsepol.a
>> +LDLIBS += -L../src ../src/mcstrans.o ../src/mls_level.o -lselinux -lpcre ../../../libsepol/src/libsepol.a
>>
>> TARGETS=$(patsubst %.c,%,$(wildcard *.c))
>>
>> diff -pru selinux-04062012-original/policycoreutils/semodule_deps/Makefile selinux-04062012/policycoreutils/semodule_deps/Makefile
>> --- selinux-04062012-original/policycoreutils/semodule_deps/Makefile 2011-11-15 00:32:56.867740958 +0100
>> +++ selinux-04062012/policycoreutils/semodule_deps/Makefile 2012-06-04 14:06:38.284818580 +0200
>> @@ -7,7 +7,7 @@ MANDIR ?= $(PREFIX)/share/man
>>
>> CFLAGS ?= -Werror -Wall -W
>> override CFLAGS += -I$(INCLUDEDIR)
>> -LDLIBS = $(LIBDIR)/libsepol.a
>> +LDLIBS = ../../libsepol/src/libsepol.a
>>
>> all: semodule_deps
>>
>> diff -pru selinux-04062012-original/policycoreutils/sepolgen-ifgen/Makefile selinux-04062012/policycoreutils/sepolgen-ifgen/Makefile
>> --- selinux-04062012-original/policycoreutils/sepolgen-ifgen/Makefile 2011-11-15 00:32:56.878741037 +0100
>> +++ selinux-04062012/policycoreutils/sepolgen-ifgen/Makefile 2012-06-04 14:08:14.580334340 +0200
>> @@ -6,7 +6,7 @@ INCLUDEDIR ?= $(PREFIX)/include
>>
>> CFLAGS ?= -Werror -Wall -W
>> override CFLAGS += -I$(INCLUDEDIR)
>> -LDLIBS = $(LIBDIR)/libsepol.a
>> +LDLIBS = ../../libsepol/src/libsepol.a
>>
>> all: sepolgen-ifgen-attr-helper
>>
Of course, after the two patches have been applied, it would still work with the previous trick of doing just "make install" (not recommended).
Regards,
Guido
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
2012-06-04 22:07 [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory) Guido Trentalancia
@ 2012-06-04 22:51 ` Eric Paris
2012-06-06 14:34 ` Colin Walters
1 sibling, 0 replies; 8+ messages in thread
From: Eric Paris @ 2012-06-04 22:51 UTC (permalink / raw)
To: Guido Trentalancia; +Cc: SELinux
On Tue, 2012-06-05 at 00:07 +0200, Guido Trentalancia wrote:
> Allow standard compilation with separate installation of the SELinux
> GIT development tree.
>
> To build, just type "make".
>
> To install (after successful build), just type "make install".
>
> During installation, it is possible to pass the variables DESTDIR,
> LIBDIR and SHLIBDIR to GNU make in order to fine tune the results.
>
> Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
>
> ---
> Makefile | 14 ++++++++++++--
> 1 file changed, 12 insertions(+), 2 deletions(-)
>
> --- selinux/Makefile 2011-09-09 20:12:55.977662144 +0200
> +++ selinux-04062012/Makefile 2012-06-04 23:35:49.859339267 +0200
> @@ -2,11 +2,21 @@ SUBDIRS=libsepol libselinux libsemanage
> PYSUBDIRS=libselinux libsemanage
> DISTCLEANSUBIDRS=libselinux libsemanage
>
> +TOPDIR := $(shell pwd)
> +
> +CPPFLAGS ?= -I$(TOPDIR)/libselinux/include -I$(TOPDIR)/libsepol/include -I$(TOPDIR)/libsemanage/include
> +LDFLAGS ?= -L$(TOPDIR)/libselinux/src -L$(TOPDIR)/libsepol/src -L$(TOPDIR)/libsemanage/src
> +CFLAGS ?= $(CPPFLAGS)
> +
> ifeq ($(DEBUG),1)
> - export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
> - export LDFLAGS = -g
> + CFLAGS += -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
> + LDFLAGS += -g
> endif
My problem with this patch is that now all of the CFLAGS stuff we have
lower in the tree (namely -W* stuff) is not going to get picked up since
CFLAGS are already exported...
So how do we solve that one too?
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
@ 2012-06-05 16:47 Guido Trentalancia
0 siblings, 0 replies; 8+ messages in thread
From: Guido Trentalancia @ 2012-06-05 16:47 UTC (permalink / raw)
To: SELinux
Hello Eric.
>On Tue, 2012-06-05 at 00:07 +0200, Guido Trentalancia wrote:
>
>> Allow standard compilation with separate installation of the SELinux
>> GIT development tree.
>>
>> To build, just type "make".
>>
>> To install (after successful build), just type "make install".
>>
>> During installation, it is possible to pass the variables DESTDIR,
>> LIBDIR and SHLIBDIR to GNU make in order to fine tune the results.
>>
>> Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
>>
>> ---
>> Makefile | 14 ++++++++++++--
>> 1 file changed, 12 insertions(+), 2 deletions(-)
>>
>> --- selinux/Makefile 2011-09-09 20:12:55.977662144 +0200
>> +++ selinux-04062012/Makefile 2012-06-04 23:35:49.859339267 +0200
>> @@ -2,11 +2,21 @@ SUBDIRS=libsepol libselinux libsemanage
>> PYSUBDIRS=libselinux libsemanage
>> DISTCLEANSUBIDRS=libselinux libsemanage
>>
>> +TOPDIR := $(shell pwd)
>> +
>> +CPPFLAGS ?= -I$(TOPDIR)/libselinux/include -I$(TOPDIR)/libsepol/include -I$(TOPDIR)/libsemanage/include
>> +LDFLAGS ?= -L$(TOPDIR)/libselinux/src -L$(TOPDIR)/libsepol/src -L$(TOPDIR)/libsemanage/src
>> +CFLAGS ?= $(CPPFLAGS)
>> +
>> ifeq ($(DEBUG),1)
>> - export CFLAGS = -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
>> - export LDFLAGS = -g
>> + CFLAGS += -g3 -O0 -gdwarf-2 -fno-strict-aliasing -Wall -Wshadow -Werror
>> + LDFLAGS += -g
>> endif
>
>My problem with this patch is that now all of the CFLAGS stuff we have
>lower in the tree (namely -W* stuff) is not going to get picked up since
>CFLAGS are already exported...
>
>So how do we solve that one too?
I suppose that happens because you are appending the variables to the make invocation, as in:
make DEBUG=1
If you set them in the environment (i.e. set and export them prior to the make invocation) or pre-append them to the make invocation as in:
DEBUG=1 make
then it should work as expected.
Regards,
Guido
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
2012-06-04 22:07 [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory) Guido Trentalancia
2012-06-04 22:51 ` Eric Paris
@ 2012-06-06 14:34 ` Colin Walters
1 sibling, 0 replies; 8+ messages in thread
From: Colin Walters @ 2012-06-06 14:34 UTC (permalink / raw)
To: Guido Trentalancia; +Cc: eparis, SELinux
On Tue, 2012-06-05 at 00:07 +0200, Guido Trentalancia wrote:
> >I've never really seen something which can get it right 'all the
> >time'. Fedora, and I assume other distros actually just use the git
> >tree subdirectories. I feel like any such patch to handle this is
> >going to have to be something set in the top level Makefile and will
> >have to cause no difficulties for other workflows....
See http://people.gnome.org/~walters/docs/build-api.txt
This patch looks roughly right to me, though it'd make me happier
if you also added a configure script. (Note: configure script does
not have to be implemented with autoconf; see
http://git.gnome.org/browse/gtk-doc-stub/tree/configure for a minimal
plain sh one).
> My problem with this patch is that now all of the CFLAGS stuff we have
> lower in the tree (namely -W* stuff) is not going to get picked up
> since
> CFLAGS are already exported...
>
> So how do we solve that one too?
The automake way is to have AM_CFLAGS, AM_CPPFLAGS which are
build-internal (and always used). CFLAGS is then something that can
be added by the builder.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
@ 2012-06-06 17:55 Guido Trentalancia
2012-06-06 17:58 ` Colin Walters
0 siblings, 1 reply; 8+ messages in thread
From: Guido Trentalancia @ 2012-06-06 17:55 UTC (permalink / raw)
To: walters; +Cc: SELinux
Hello Colin.
>On Tue, 2012-06-05 at 00:07 +0200, Guido Trentalancia wrote:
>
>> >I've never really seen something which can get it right 'all the
>> >time'. Fedora, and I assume other distros actually just use the git
>> >tree subdirectories. I feel like any such patch to handle this is
>> >going to have to be something set in the top level Makefile and will
>> >have to cause no difficulties for other workflows....
>
>See http://people.gnome.org/~walters/docs/build-api.txt
>
>This patch looks roughly right to me, though it'd make me happier
>if you also added a configure script. (Note: configure script does
>not have to be implemented with autoconf; see
>http://git.gnome.org/browse/gtk-doc-stub/tree/configure for a minimal
>plain sh one).
>
>> My problem with this patch is that now all of the CFLAGS stuff we have
>> lower in the tree (namely -W* stuff) is not going to get picked up
>> since
>> CFLAGS are already exported...
>>
>> So how do we solve that one too?
>
>The automake way is to have AM_CFLAGS, AM_CPPFLAGS which are
>build-internal (and always used). CFLAGS is then something that can
>be added by the builder.
The autotools option has been discussed already several times and it has always been rejected.
For example, some of the original authors just do not like autotools very much.
I am quite neutral about liking it or not, but to be honest, for this specific project and considered its size and nature, I really think at the moment autotools would only introduce unneeded complexity without any significant benefit.
Autotools are probably mandatory or strongly recommended only for GNU projects.
If and when, the project grows with a significant number of configurable build options (unlikely, as options are usually runtime ones), then it is probably possible to re-evaluate the situation, I suppose.
Or, at least, this is my personal opinion about it. Other people, in particular the maintainers, might have different opinions.
If you want to propose the minimal configure script that you wrote, my personal opinion is that it might tidy up the build logic a little bit so that it can be better managed over time and it might also turn out to be handy to someone someday...
But I think you should submit it as a patch for revision by the maintainers and other users with all the lower levels Makefiles modified to source the file produced by the script (i.e. as a working solution).
Regards,
Guido
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
2012-06-06 17:55 Guido Trentalancia
@ 2012-06-06 17:58 ` Colin Walters
2012-06-06 18:45 ` Colin Walters
0 siblings, 1 reply; 8+ messages in thread
From: Colin Walters @ 2012-06-06 17:58 UTC (permalink / raw)
To: Guido Trentalancia; +Cc: SELinux
On Wed, 2012-06-06 at 19:55 +0200, Guido Trentalancia wrote:
> The autotools option has been discussed already several times and it has always been rejected.
You must not have even bothered to read the link or understand what I
was saying. I'm not saying "switch to autotools!". Rather,
implementing a subset of the API surface they expose.
I've actually done this for various other components between GNOME and
Linux.
> If you want to propose the minimal configure script that you wrote,
> my personal opinion is that it might tidy up the build logic a little
> bit so that it can be better managed over time and it might also
> turn out to be handy to someone someday...
What I was actually saying is that your patch should explicitly
separate BUILD_INTERNAL_CFLAGS from CFLAGS. Automake calls the former
AM_CFLAGS, but you can call it whatever you want in your Makefile.
The point is to leave CFLAGS as a meta-build (rpm/dpkg/yocto)
customization tool.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
2012-06-06 17:58 ` Colin Walters
@ 2012-06-06 18:45 ` Colin Walters
0 siblings, 0 replies; 8+ messages in thread
From: Colin Walters @ 2012-06-06 18:45 UTC (permalink / raw)
To: Guido Trentalancia; +Cc: SELinux
On Wed, 2012-06-06 at 13:58 -0400, Colin Walters wrote:
> What I was actually saying is that your patch should explicitly
> separate BUILD_INTERNAL_CFLAGS from CFLAGS. Automake calls the former
> AM_CFLAGS, but you can call it whatever you want in your Makefile.
http://marc.info/?l=selinux&m=105830780118085&w=2
9 years later, discussing the CFLAGS handling again =)
Some things change (I now get binaries in .rpm form instead of .debs,
libselinux has migrated from cvs to svn to git), some things stay the
same...
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
@ 2012-06-07 16:07 Guido Trentalancia
0 siblings, 0 replies; 8+ messages in thread
From: Guido Trentalancia @ 2012-06-07 16:07 UTC (permalink / raw)
To: walters; +Cc: SELinux
Hello Colin.
>On Wed, 2012-06-06 at 13:58 -0400, Colin Walters wrote:
>
>> What I was actually saying is that your patch should explicitly
>> separate BUILD_INTERNAL_CFLAGS from CFLAGS. Automake calls the former
>> AM_CFLAGS, but you can call it whatever you want in your Makefile.
Yes, I have also considered such logic (GIT_CFLAGS) and if it is the preferred way, it can be easily done.
>http://marc.info/?l=selinux&m=105830780118085&w=2
>
>9 years later, discussing the CFLAGS handling again =)
>
>Some things change (I now get binaries in .rpm form instead of .debs,
>libselinux has migrated from cvs to svn to git), some things stay the
>same...
The make system won't change as often as the revision control system, possibly it won't change at all for the whole duration of the project, so it shouldn't be such a bad idea to invest a few minutes in some maintenance...
Regards,
Guido
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-06-07 16:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-04 22:07 [PATCH]: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory) Guido Trentalancia
2012-06-04 22:51 ` Eric Paris
2012-06-06 14:34 ` Colin Walters
-- strict thread matches above, loose matches on Subject: below --
2012-06-05 16:47 Guido Trentalancia
2012-06-06 17:55 Guido Trentalancia
2012-06-06 17:58 ` Colin Walters
2012-06-06 18:45 ` Colin Walters
2012-06-07 16:07 Guido Trentalancia
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.