瀏覽代碼

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 年之前
父節點
當前提交
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. */