]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Makefile: support explicit static linking of libd0
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 24 Dec 2023 12:04:02 +0000 (22:04 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 24 Dec 2023 12:04:02 +0000 (22:04 +1000)
Allows a kludge to be removed in Xonotic.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
makefile

index 1ca0fe1ad0d3d243d85ad48b098515e020b83785..eb978a866bfe687b6fdd2435aacae272af79de20 100644 (file)
--- a/makefile
+++ b/makefile
@@ -295,19 +295,23 @@ ifeq ($(DP_LINK_ODE), dlopen)
 endif
 
 # d0_blind_id
-ifeq ($(DP_LINK_CRYPTO), shared)
+ifeq ($(DP_LINK_CRYPTO), static)
+       LIB_CRYPTO=-ld0_blind_id -lgmp
+       CFLAGS_CRYPTO=-DLINK_TO_CRYPTO
+else ifeq ($(DP_LINK_CRYPTO), shared)
        LIB_CRYPTO=-ld0_blind_id
        CFLAGS_CRYPTO=-DLINK_TO_CRYPTO
-endif
-ifeq ($(DP_LINK_CRYPTO), dlopen)
+else ifeq ($(DP_LINK_CRYPTO), dlopen)
        LIB_CRYPTO=
        CFLAGS_CRYPTO=
 endif
+ifeq ($(DP_LINK_CRYPTO_RIJNDAEL), static)
+       DP_LINK_CRYPTO_RIJNDAEL=shared
+endif
 ifeq ($(DP_LINK_CRYPTO_RIJNDAEL), shared)
        LIB_CRYPTO_RIJNDAEL=-ld0_rijndael
        CFLAGS_CRYPTO_RIJNDAEL=-DLINK_TO_CRYPTO_RIJNDAEL
-endif
-ifeq ($(DP_LINK_CRYPTO_RIJNDAEL), dlopen)
+else ifeq ($(DP_LINK_CRYPTO_RIJNDAEL), dlopen)
        LIB_CRYPTO_RIJNDAEL=
        CFLAGS_CRYPTO_RIJNDAEL=
 endif