VirtualBox

Ignore:
Timestamp:
Feb 20, 2019 7:57:07 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128958
Message:

More linux kernel module Makefile cleanups: Try make 2.6.0 thru 2.6.5 build using the 2.4.x approach. Tweaked the version detection code. Check that the compiler supports -fno-pie and -Wno-declaration-after-statement before using them (additions only). Eliminated VBOX_INCL (formerly know n as INCL).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r77403 r77404  
    6666VBOXMOD_DEFS += VBOX_WITH_64_BITS_GUESTS
    6767endif
    68 ifeq ($(KERN_VERSION),24)
    69 VBOXMOD_CFLAGS =
    70 else
    71 VBOXMOD_CFLAGS = -Wno-declaration-after-statement -fshort-wchar -include $(VBOXSF_DIR)/include/VBox/VBoxGuestMangling.h -fno-pie
     68VBOXMOD_CFLAGS := $(call VBOX_GCC_CHECK_CC,-Wno-declaration-after-statement,-Wno-declaration-after-statement,,)
     69VBOXMOD_CFLAGS += $(call VBOX_GCC_CHECK_CC,-fno-pie,-fno-pie,,)
     70ifneq ($(KERN_VERSION),24)
     71VBOXMOD_CFLAGS += -include $(VBOXSF_DIR)/include/VBox/VBoxGuestMangling.h
     72## @todo r-bird: What's with -fshort-wchar here?? We either need that or we dont, right? It should be 2.6+ only.
     73VBOXMOD_CFLAGS += -fshort-wchar
    7274endif
    7375ifdef VBOX_NO_OMIT_FRAME_POINTER
Note: See TracChangeset for help on using the changeset viewer.

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