File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,15 @@ LOCAL_CFLAGS= -I$(top_srcdir)/external/uthash \
43
43
-I$(top_builddir)/libpkg \
44
44
-DGITHASH=\"@GITHASH@\" \
45
45
-DHAVE_CONFIG_H
46
- LIBS= \
47
- -L$(top_builddir)/libpkg -lpkg_flat \
48
- -lm \
49
- @EXTRA_LIBS@
46
+ LIBPKGFLAT= -L$(top_builddir)/libpkg -lpkg_flat
47
+ LIBS= @EXTRA_LIBS@
50
48
51
49
@if HAVE_PKG_LIBARCHIVE
52
50
LIBS+= @PKG_LIBARCHIVE_LDFLAGS@ @PKG_LIBARCHIVE_LIBS_STATIC@
53
51
@else
54
52
LIBS+= -larchive -lbz2 -lz -llzma
55
53
@endif
56
- OTHER_LIBS= -lssl -lcrypto -pthread
54
+ OTHER_LIBS= -lm - lssl -lcrypto -pthread
57
55
@if HAVE_LIBUTIL
58
56
OTHER_LIBS+= -lutil
59
57
@endif
@@ -65,16 +63,17 @@ OTHER_LIBS+= -lresolv
65
63
@endif
66
64
67
65
@if libabidir == libmachista
68
- LOCAL_LDFLAGS= $(LIBS) $(OTHER_LIBS)
66
+ LOCAL_LDFLAGS= $(LIBPKGFLAT) $( LIBS) $(OTHER_LIBS)
69
67
@else
70
68
LOCAL_LDFLAGS= -Wl,-Bstatic \
71
- -Wl,--whole-archive $(LIBS) -Wl,--no-whole-archive \
69
+ -Wl,--whole-archive $(LIBPKGFLAT) -Wl,--no-whole-archive \
70
+ $(LIBS) \
72
71
-Wl,-Bdynamic $(OTHER_LIBS) \
73
72
-Wl,--export-dynamic \
74
73
-Wl,--version-script=$(top_builddir)/libpkg/libpkg.ver
75
74
@endif
76
75
77
- STATIC_LDFLAGS= $(LIBS) $(OTHER_LIBS)
76
+ STATIC_LDFLAGS= $(LIBPKGFLAT) $( LIBS) $(OTHER_LIBS)
78
77
79
78
include $(MK)/prog.mk
80
79
You can’t perform that action at this time.
0 commit comments