Просмотр исходного кода

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 лет назад: 16
Родитель
Сommit
c9cf7b1d41
2 измененных файлов с 2 добавлено и 0 удалено
  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. */