From: Jeremy Harris Date: Sun, 1 Sep 2024 19:15:21 +0000 (+0100) Subject: Add dummy file to miscmods archive to ensure non-empty X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/2bb42e2899db219f4a598530b43e06b1b977a81e Add dummy file to miscmods archive to ensure non-empty --- diff --git a/src/scripts/MakeLinks b/src/scripts/MakeLinks index 0be066352..f657abd5b 100755 --- a/src/scripts/MakeLinks +++ b/src/scripts/MakeLinks @@ -32,7 +32,7 @@ d="lookups" mkdir $d cd $d # Makefile is generated -for f in README cdb.c dbmdb.c dnsdb.c dsearch.c ibase.c json.c ldap.h ldap.c \ +for f in README cdb.c dbmdb.c dnsdb.c dsearch.c ibase.c json.c ldap.c \ lmdb.c lsearch.c mysql.c nis.c nisplus.c oracle.c passwd.c \ pgsql.c readsock.c redis.c spf.c sqlite.c testdb.c whoson.c \ lf_functions.h lf_check_file.c lf_quote.c lf_sqlperform.c @@ -94,7 +94,7 @@ d="miscmods" mkdir $d cd $d # Makefile is generated -for f in dmarc.c dmarc.h dmarc_api.h spf.c spf.h spf_api.h +for f in dmarc.c dmarc.h dmarc_api.h dummy.c spf.c spf.h spf_api.h do ln -s ../../src/$d/$f $f done diff --git a/src/src/miscmods/Makefile b/src/src/miscmods/Makefile index d20b7a9f1..3bc535720 100644 --- a/src/src/miscmods/Makefile +++ b/src/src/miscmods/Makefile @@ -10,6 +10,7 @@ # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE +OBJ += dummy.o all: miscmods.a $(MODS) @@ -26,7 +27,8 @@ miscmods.a: $(OBJ) .c.so:; @echo "$(CC) -shared $*.c" $(FE)$(CC) $(SUPPORT_$*_INCLUDE) $(SUPPORT_$*_LIBS) -DDYNLOOKUP $(CFLAGS_DYNAMIC) $(CFLAGS) $(INCLUDE) $(DLFLAGS) $*.c -o $@ -spf.o spf.so: $(HDRS) spf.h spf.c dmarc.o dmarc.so: $(HDRS) ../pdkim/pdkim.h dmarc.h dmarc.c +dummy.o: dummy.c +spf.o spf.so: $(HDRS) spf.h spf.c # End diff --git a/src/src/miscmods/dummy.c b/src/src/miscmods/dummy.c new file mode 100644 index 000000000..997527d7f --- /dev/null +++ b/src/src/miscmods/dummy.c @@ -0,0 +1,11 @@ +/************************************************* +* Exim - an Internet mail transport agent * +*************************************************/ + +/* Copyright (c) The Exim Maintainers 2024 */ +/* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +/* Dummy source just so that miscmods.a is never empty */ + +int dummy;