VirtualBox

Changeset 13443 in vbox


Ignore:
Timestamp:
Oct 21, 2008 1:41:52 PM (16 years ago)
Author:
vboxsync
Message:

Runtime/Makefile: new chcon that doesn't cause warning. seems to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r13408 r13443  
    742742        $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
    743743
     744#
     745# HACK ALLERT! Make testcase run during build on SELinux boxes.
     746#              Create a dummy DLL that ensure that VBoxRT is installed
     747#              during the DLL pass and cleaned up later.
     748#
     749ifeq ($(KBUILD_TARGET),linux)
     750 if1of (VBoxRT, $(DLLS))
     751  ifneq ($(wildcard /usr/bin/chcon),)
     752VBoxRT_NOINST = true
     753
     754DLLS += VBoxRTDummy
     755VBoxRTDummy_TEMPLATE = VBOXR3
     756VBoxRTDummy_NOINST = true
     757VBoxRTDummy_LIBS = $(PATH_BIN)/VBoxRT.so
     758VBoxRTDummy_CLEAN= $(PATH_BIN)/VBoxRT.so
     759
     760$(PATH_BIN)/VBoxRT.so: $$(TARGET_VBoxRT) | $$(dir $$@)
     761        $(INSTALL) $< $@
     762        chcon -t texrel_shlib_t $@ || true
     763
     764  endif # chcon present.
     765 endif # building VBoxRT
     766endif # linux
    744767
    745768#
     
    14261449
    14271450
    1428 ifneq ($(wildcard /usr/bin/chcon),)
    1429 # this is needed for testcases executed at build time
    1430 ## @todo Make a special installer tool that does this.
    1431 $(PATH_BIN)/VBoxRT.so:
    1432         $(INSTALL) $(TARGET_VBoxRT) $@
    1433         chcon -t texrel_shlib_t $@ || true
    1434 endif
    1435 
    1436 
    14371451#
    14381452# Generate the status code data.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette