VirtualBox

Changeset 6604 in vbox for trunk


Ignore:
Timestamp:
Jan 30, 2008 2:00:22 PM (17 years ago)
Author:
vboxsync
Message:

Fixed the PIC issue with the X11 drivers: Made VBOX_LIB_IPRT_GUEST_R3_MINI shared. Created a shared version of VBoxGuestR3Lib (VBOX_LIB_VBGL_R3_SHARED). And switched the drivers to use this.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r6599 r6604  
    27292729TEMPLATE_VBOXGUESTR3DLL          = VBox Guest User Dynamic Libraries
    27302730TEMPLATE_VBOXGUESTR3DLL_EXTENDS  = VBOXGUESTR3EXE
     2731## @todo add a INSTFUN that separates dlls and libs.
    27312732ifn1of ($(BUILD_TARGET), os2 win)
    27322733 TEMPLATE_VBOXGUESTR3DLL_DEFS       = $(TEMPLATE_VBOXGUESTR3EXE_DEFS) PIC
     
    27792780
    27802781#
    2781 # Guest additions libraries.
     2782# Guest additions libraries (all static).
     2783#   The _MINI and _SHARED are both compiled as PIC and intended for linking into a .so/.dll/.dylib.
    27822784#
    27832785VBOX_LIB_IPRT_GUEST_R3          = $(VBOX_PATH_ADDITIONS_LIB)/RuntimeGuestR3$(VBOX_SUFF_LIB)
     
    27862788VBOX_LIB_VBGL_R3                = $(VBOX_PATH_ADDITIONS_LIB)/VBoxGuestR3Lib$(VBOX_SUFF_LIB)
    27872789VBOX_LIB_VBGL_R3_XFREE86        = $(VBOX_PATH_ADDITIONS_LIB)/VBoxGuestR3LibXFree86$(VBOX_SUFF_LIB)
     2790VBOX_LIB_VBGL_R3_SHARED         = $(VBOX_PATH_ADDITIONS_LIB)/VBoxGuestR3LibShared$(VBOX_SUFF_LIB)
    27882791VBOX_LIB_VBGL_R0BASE            = $(VBOX_PATH_ADDITIONS_LIB)/VBoxGuestR0LibBase$(VBOX_SUFF_LIB)
    27892792VBOX_LIB_VBGL_R0                = $(VBOX_PATH_ADDITIONS_LIB)/VBoxGuestR0Lib$(VBOX_SUFF_LIB)
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk

    r6600 r6604  
    2626 ifneq ($(BUILD_TARGET),win)
    2727  LIBRARIES += \
    28         VBoxGuestR3Lib
     28        VBoxGuestR3Lib \
     29        VBoxGuestR3LibShared
    2930 endif
    3031else
     
    4950   LIBRARIES += \
    5051        VBoxGuestR3Lib \
     52        VBoxGuestR3LibShared \
    5153        VBoxGuestR3LibXFree86 \
    5254        VBoxGuestR3LibLinux
     
    108110        VBoxGuestR3LibTime.cpp \
    109111        VBoxGuestR3LibVideo.cpp
     112
     113#
     114# VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
     115#
     116VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
     117VBoxGuestR3LibShared_DEFS    := $(VBoxGuestR3Lib_DEFS)
     118VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
     119VBoxGuestR3LibShared_INST    := $(INST_ADDITIONS_LIB)
    110120
    111121
  • trunk/src/VBox/Additions/x11/xgraphics/Makefile.kmk

    r6566 r6604  
    2525# for BUILD_TARGET=l4
    2626SUFF_DLL = .so
    27 
    28 ## @todo clean up this by switching to VBoxGuestR3Lib
    29 VBOX_LIB_VBGL_R3 := $(PATH_LIB)/VBoxGuestR3LibLinux.a
    3027
    3128vboxvideo_drv_TEMPLATE = VBOXLNX32GUESTR3EXE
     
    124121        vboxutils-new.c
    125122vboxvideo_drv_70_LIBS = \
    126         $(VBOX_LIB_VBGL_R3) \
     123        $(VBOX_LIB_VBGL_R3_SHARED) \
    127124        $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
    128         $(VBOX_LIB_VBGL_R3)
     125        $(VBOX_LIB_VBGL_R3_SHARED)
    129126
    130127vboxvideo_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
    131128vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
    132129vboxvideo_drv_71_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
    133 vboxvideo_drv_71_LDFLAGS = -s 
     130vboxvideo_drv_71_LDFLAGS = -s
    134131vboxvideo_drv_71_INCS = \
    135132        ../x11include/7.1 \
     
    140137        vboxutils-new.c
    141138vboxvideo_drv_71_LIBS = \
    142         $(VBOX_LIB_VBGL_R3) \
     139        $(VBOX_LIB_VBGL_R3_SHARED) \
    143140        $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
    144         $(VBOX_LIB_VBGL_R3)
     141        $(VBOX_LIB_VBGL_R3_SHARED)
    145142
    146143vboxvideo_drv_13_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
    147144vboxvideo_drv_13_DEFS := $(vboxvideo_drv_70_DEFS)
    148145vboxvideo_drv_13_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
    149 vboxvideo_drv_13_LDFLAGS = -s 
     146vboxvideo_drv_13_LDFLAGS = -s
    150147vboxvideo_drv_13_INCS = \
    151148        ../x11include/1.3 \
     
    156153        vboxutils-new.c
    157154vboxvideo_drv_13_LIBS = \
    158         $(VBOX_LIB_VBGL_R3) \
     155        $(VBOX_LIB_VBGL_R3_SHARED) \
    159156        $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
    160         $(VBOX_LIB_VBGL_R3)
     157        $(VBOX_LIB_VBGL_R3_SHARED)
    161158
    162159vboxvideo_drv_14_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
    163160vboxvideo_drv_14_DEFS := $(vboxvideo_drv_70_DEFS)
    164161vboxvideo_drv_14_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
    165 vboxvideo_drv_14_LDFLAGS = -s 
     162vboxvideo_drv_14_LDFLAGS = -s
    166163vboxvideo_drv_14_INCS = \
    167164        ../x11include/1.4 \
     
    174171        vboxutils-new.c
    175172vboxvideo_drv_14_LIBS = \
    176         $(VBOX_LIB_VBGL_R3) \
     173        $(VBOX_LIB_VBGL_R3_SHARED) \
    177174        $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
    178         $(VBOX_LIB_VBGL_R3)
     175        $(VBOX_LIB_VBGL_R3_SHARED)
    179176endif
    180177
     
    194191        vboxutils-new.c
    195192vboxvideo_drv_LIBS = \
    196         $(VBOX_LIB_VBGL_R3) \
     193        $(VBOX_LIB_VBGL_R3_SHARED) \
    197194        $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
    198         $(VBOX_LIB_VBGL_R3)
     195        $(VBOX_LIB_VBGL_R3_SHARED)
    199196endif
    200197
  • trunk/src/VBox/Runtime/Makefile.kmk

    r6602 r6604  
    527527#                      for X11 drivers.
    528528#
    529 ifeq ($(BUILD_TARGET),linux) ## @todo elimiate this by fixing VBOXGUESTR3LIB/DLL/EXE. What about NOCPP like the x11 bits?
    530 RuntimeGuestR3Mini_TEMPLATE             := VBOXLNX32GUESTR3LIB
    531 RuntimeGuestR3Mini_INST                  = $(INST_ADDITIONS_LIB)
    532 RuntimeGuestR3Mini_CXXFLAGS.linux        = -fno-exceptions
    533 else
    534529RuntimeGuestR3Mini_TEMPLATE             := VBOXGUESTR3DLL
    535 endif
     530RuntimeGuestR3Mini_INST                 := $(INST_ADDITIONS_LIB)
    536531RuntimeGuestR3Mini_SDKS.win             := $(RuntimeR3_SDKS.win)
    537532RuntimeGuestR3Mini_DEFS                 := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) \
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