VirtualBox

Changeset 98013 in vbox


Ignore:
Timestamp:
Jan 6, 2023 6:53:06 PM (2 years ago)
Author:
vboxsync
Message:

libs/curl: Use the correct curl_config.h file for the VBox-libcurl-x86 target. Use INSTALL_STAGING rather than CP to copy it, so it can be hard linked (saves space and time).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/curl-7.83.1/Makefile.kmk

    r96407 r98013  
    5252        CURL_DISABLE_SMTP \
    5353        CURL_DISABLE_TELNET
    54 VBox-libcurl_DEPS           = $(VBox-libcurl_0_OUTDIR)/lib/curl_config.h
    55 VBox-libcurl_CLEAN          = $(VBox-libcurl_DEPS)
    5654VBox-libcurl_CFLAGS.win    += -wd4826 # formdata.c(390) : warning C4826: Conversion from 'char *' to 'curl_off_t' is sign-extended. This may cause unexpected runtime behavior.
    5755VBox-libcurl_CFLAGS.win    += -wd4310 # warnless.c(189) : warning C4310: cast truncates constant value
     
    6058 VBox-libcurl_CFLAGS.win   += -wd4774 # mprintf.c(949): warning C4774: 'sprintf' : format string expected in argument 2 is not a string literal
    6159endif
    62 VBox-libcurl_INCS           = include $(VBox-libcurl_0_OUTDIR)/lib $(VBOX_PATH_LIBCURL)/lib
     60VBox-libcurl_INCS           = \
     61        include \
     62        $(VBox-libcurl_0_OUTDIR)/lib \
     63        $(VBOX_PATH_LIBCURL)/lib
    6364VBox-libcurl_SOURCES        = \
    6465        lib/base64.c \
     
    147148        lib/version_win32.c
    148149
     150# Use checked in config.h instead of running ./configure for it.
     151VBox-libcurl_DEPS  = $(VBox-libcurl_0_OUTDIR)/lib/curl_config.h
     152VBox-libcurl_CLEAN = $(VBox-libcurl_DEPS)
     153$$(VBox-libcurl_0_OUTDIR)/lib/curl_config.h: $(VBOX_PATH_LIBCURL)/config.h.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) | $$(dir $$@)
     154        $(INSTALL_STAGING) -- "$^" "$@"
     155
    149156ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
    150157 LIBRARIES += VBox-libcurl-x86
    151158 VBox-libcurl-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
    152  VBox-libcurl-x86_EXTENDS = VBox-libcurl
     159 VBox-libcurl-x86_EXTENDS  = VBox-libcurl
     160 VBox-libcurl-x86_INCS     = \
     161        include \
     162        $(VBox-libcurl-x86_0_OUTDIR)/lib \
     163        $(VBOX_PATH_LIBCURL)/lib
     164 VBox-libcurl-x86_DEPS     = $(VBox-libcurl-x86_0_OUTDIR)/lib/curl_config.h
     165 VBox-libcurl-x86_CLEAN    = $(VBox-libcurl-x86_DEPS)
     166 $$(VBox-libcurl-x86_0_OUTDIR)/lib/curl_config.h: $(VBOX_PATH_LIBCURL)/config.h.$(KBUILD_TARGET).x86 | $$(dir $$@)
     167        $(INSTALL_STAGING) -- "$^" "$@"
     168
    153169endif
    154170
    155171include $(FILE_KBUILD_SUB_FOOTER)
    156172
    157 #
    158 # Use checked in config.h instead of running ./configure for it.
    159 #
    160 libcurl_config.h.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(VBOX_PATH_LIBCURL)/config.h.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)
    161173
    162 $$(VBox-libcurl_0_OUTDIR)/lib/curl_config.h: $(libcurl_config.h.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) | $$(dir $$@)
    163         $(CP) -f $^ $@
    164 
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