VirtualBox

Changeset 99692 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 9, 2023 9:31:21 AM (21 months ago)
Author:
vboxsync
Message:

NetworkServices,VirtualBox: Omit -rpath on macOS when running parfait, as parfait produces an ../MacOS can't be accessed error and we don't want to run the output from the parfait builds anyway, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r99689 r99692  
    401401endif
    402402
     403#
     404# Parfait fails with an error that ../MacOS can't be accessed while standard clang has no problem with it.
     405# As we don't want to run the output just omit the -rpath arguments to make it build
     406#
    403407VirtualBox_LDFLAGS.darwin = \
    404         $(if $(VBOX_WITH_HARDENING),,-rpath @executable_path/../MacOS -rpath @executable_path/../Frameworks) \
     408        $(if $(VBOX_WITH_HARDENING) || $(VBOX_WITH_PARFAIT),,-rpath @executable_path/../MacOS -rpath @executable_path/../Frameworks) \
    405409        -framework AppKit -framework Carbon -framework IOKit
    406410
     
    432436endif
    433437
    434 VirtualBoxVM_LDFLAGS.darwin = \
    435         $(if $(VBOX_WITH_HARDENING) \
    436                 ,-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBoxVM.dylib \
    437                 ,-rpath @executable_path/../../../../MacOS \
    438                 -rpath @executable_path/../../../../Frameworks) \
    439         -framework AppKit -framework Carbon -framework IOKit
     438#
     439# Parfait fails with an error that ../MacOS can't be accessed while standard clang has no problem with it.
     440# As we don't want to run the output just omit the -rpath arguments to make it build
     441#
     442ifndef VBOX_WITH_PARFAIT
     443 VirtualBoxVM_LDFLAGS.darwin = \
     444        $(if $(VBOX_WITH_HARDENING)) \
     445                ,-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBoxVM.dylib \
     446                ,-rpath @executable_path/../../../../MacOS \
     447                -rpath @executable_path/../../../../Frameworks) \
     448        -framework AppKit -framework Carbon -framework IOKit
     449else
     450 VirtualBoxVM_LDFLAGS.darwin = -framework AppKit -framework Carbon -framework IOKit
     451endif
    440452
    441453ifdef VBOX_GUI_WITH_QTGLFRAMEBUFFER
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