VirtualBox

Changeset 97979 in vbox


Ignore:
Timestamp:
Jan 4, 2023 2:35:52 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155070
Message:

libs/openssl-3.0.7: Edit openssl headers on staging/install when using older gcc that warns about pragma once being obsolete. ValKit build has some 45000 warnings about this. This also changes the openssl templates to use the staged headers when compiling rather than the ones in the src/libs/openssl-3.0.7/include.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/openssl-3.0.7/Config.kmk

    r97895 r97979  
    194194        gen-includes/openssl/x509v3.h=>x509v3.h
    195195
     196## Workaround for GCC 3.3.x or older always warning about '\#pragma once' being obsolete.
     197#
     198# We edit the headers during installation and qualifies the \#pragma once with
     199# RT_WITHOUT_PRAGMA_ONCE like we do for our own headers (defined root templates).
     200#
     201# 1=<src>, 2=<dst>, 3=<target>, 4=<flags>, 5=install|stage
     202# context vars: uid, gid, mode
     203#
     204if "$(VBOX_GCC_VERSION_CC)" < 30400 && "$(KBUILD_TARGET)" != "win"
     205 define crypto-headers_INSTALLER
     206        $$(RM) -f -- "$(2)"
     207        $$(SED) -e 's/^\([#][[:space:]]*\)pragma[[:space:]][[:space:]]*once.*/\1ifndef RT_WITHOUT_PRAGMA_ONCE\n\1 pragma once\n\1endif/' \
     208                --output "$(2)" "$(1)"
     209        $(if $(mode),$(CHMOD) "$(mode)" -- "$(2)",)
     210 endef
     211endif
     212
    196213#
    197214# The templates used for the crypo lib and all its sublibraries.
     
    302319
    303320TEMPLATE_LIBCRYPTO_INCS := \
     321        $(dir $(VBOX_PATH_CRYPTO_HEADERS)) \
    304322        $(VBOX_PATH_OPENSSL) \
    305323        $(VBOX_PATH_OPENSSL)/include \
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