Explorar o código

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 %!s(int64=17) %!d(string=hai) anos
pai
achega
c9cf7b1d41
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  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. */