Procházet zdrojové kódy

libcompat: Always add an empty file to the libcompat static library

Some ar implementations do not support creating empty archives, so we
add a dummy empty object to avoid any problem.
Guillem Jover před 17 roky
rodič
revize
c9cf7b1d41
2 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 1 0
      lib/compat/Makefile.am
  2. 1 0
      lib/compat/empty.c

+ 1 - 0
lib/compat/Makefile.am

@@ -8,6 +8,7 @@ AM_CPPFLAGS = \
 noinst_LIBRARIES = libcompat.a
 
 libcompat_a_SOURCES = \
+	empty.c \
 	compat.h \
 	gettext.h
 

+ 1 - 0
lib/compat/empty.c

@@ -0,0 +1 @@
+/* Some implementations of ar cannot create an empty archive. */