Explorar el 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 hace 16 años
padre
commit
c9cf7b1d41
Se han modificado 2 ficheros con 2 adiciones y 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
 noinst_LIBRARIES = libcompat.a
 
 
 libcompat_a_SOURCES = \
 libcompat_a_SOURCES = \
+	empty.c \
 	compat.h \
 	compat.h \
 	gettext.h
 	gettext.h
 
 

+ 1 - 0
lib/compat/empty.c

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