diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-06 16:24:09 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-06 16:24:09 +0200 |
commit | 8a843e03d0cbdf532f9820e475cff1238b114bb2 (patch) | |
tree | 6d2e7668ec2823adb0e65560f32156c6c6b9e8d0 | |
parent | 8d13033d6c84109fff3d2788d9bb844462ad6b8e (diff) | |
download | xine-lib-8a843e03d0cbdf532f9820e475cff1238b114bb2.tar.gz xine-lib-8a843e03d0cbdf532f9820e475cff1238b114bb2.tar.bz2 |
Properly use chcon over only xineplug and xinepost libraries.
This reduces the number of objects that are allowed to contain
TEXT section relocations (skipping for instance libxine and the
vidix drivers).
This is still suboptimal because only those plugins that actually
contains text relocation should be allowed to contain them (that
is what is done with IMPURE_TEXT_LDFLAGS for Solaris and Darwin).
-rw-r--r-- | misc/Makefile.common | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/misc/Makefile.common b/misc/Makefile.common index 357c19666..3bae6f001 100644 --- a/misc/Makefile.common +++ b/misc/Makefile.common @@ -18,14 +18,18 @@ install-data-hook: fi; \ fi; \ if test -x /usr/bin/chcon -a "`id -u`" -eq 0; then \ - list='$(lib_LTLIBRARIES)'; \ - if test -n "$$list" ; then \ + list='$(xineplug_LTLIBRARIES)'; \ for p in $$list; do \ p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ - echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(libdir)/$$p"; \ - chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(libdir)/$$p || :; \ + echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xineplugdir)/$$p"; \ + chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xineplugdir)/$$p || :; \ + done; \ + list='$(xinepost_LTLIBRARIES)'; \ + for p in $$list; do \ + p="`echo $$p | sed -e 's/\.la$$/\.so/g;s|^.*/||'`"; \ + echo " chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xinepostdir)/$$p"; \ + chcon system_u:object_r:texrel_shlib_t $(DESTDIR)$(xinepostdir)/$$p || :; \ done; \ - fi; \ fi pass1: |