[recipes] Don't link against libglnx if we're not building it



commit 259db35ce11510fdd56aaa559254107f7764aa99
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Dec 29 13:28:17 2016 -0500

    Don't link against libglnx if we're not building it

 src/Makefile.am |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 3d8c4da..48a1d23 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,8 +16,11 @@ recipes_CFLAGS = \
 
 recipes_LDADD = $(RECIPES_LIBS)                        \
                -lm                             \
-               $(top_builddir)/libgd/libgd.la  \
-               $(top_builddir)/libglnx.la
+               $(top_builddir)/libgd/libgd.la
+
+if USE_AUTOAR
+recipes_LDADD += $(top_builddir)/libglnx.la
+endif
 
 recipes_SOURCES = \
        main.c                  \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]