1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
|
From a43a952135bd8b657b455ff88bae640ad8d104e9 Mon Sep 17 00:00:00 2001
From: Christian Ruppert <idl0r@gentoo.org>
Date: Thu, 20 Jan 2011 18:20:45 +0100
Subject: [PATCH] Fix LDFLAGS usage
---
framework/cgi/Makefile.am | 4 ++--
framework/common/Makefile.am | 7 ++++---
framework/defcomp/Makefile.am | 4 ++--
framework/runtime/Makefile.am | 3 +--
sdk/demos/Makefile.am | 4 ++--
sdk/demos/calc/Makefile.am | 4 ++--
sdk/demos/calcajax/Makefile.am | 4 ++--
sdk/demos/calci18n/Makefile.am | 4 ++--
sdk/demos/calcmvc/Makefile.am | 4 ++--
sdk/demos/chat/Makefile.am | 4 ++--
sdk/demos/comp/Makefile.am | 8 ++++----
sdk/demos/config/Makefile.am | 4 ++--
sdk/demos/controls/Makefile.am | 4 ++--
sdk/demos/cookie/Makefile.am | 4 ++--
sdk/demos/hello/Makefile.am | 4 ++--
sdk/demos/rajax-jquery/Makefile.am | 4 ++--
sdk/demos/savepoint/Makefile.am | 4 ++--
sdk/demos/session/Makefile.am | 4 ++--
sdk/demos/sprintf/Makefile.am | 4 ++--
sdk/demos/strings/Makefile.am | 4 ++--
sdk/demos/upload/Makefile.am | 4 ++--
sdk/tools/common/Makefile.am | 3 ++-
sdk/tools/ecppc/Makefile.am | 3 +--
sdk/tools/ecppl/Makefile.am | 3 +--
sdk/tools/ecppll/Makefile.am | 3 +--
utest/Makefile.am | 3 +--
26 files changed, 51 insertions(+), 54 deletions(-)
diff --git a/framework/cgi/Makefile.am b/framework/cgi/Makefile.am
index 4912e19..0bc02f4 100644
--- a/framework/cgi/Makefile.am
+++ b/framework/cgi/Makefile.am
@@ -7,5 +7,5 @@ libtntnet_cgi_la_SOURCES = \
tnt/cgi.h
libtntnet_cgi_la_CXXFLAGS = $(PTHREAD_CFLAGS)
-libtntnet_cgi_la_LDFLAGS = -version-info @sonumber@ $(PTHREAD_LIBS)
-libtntnet_cgi_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la -lcxxtools
+libtntnet_cgi_la_LDFLAGS = -version-info @sonumber@
+libtntnet_cgi_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la -lcxxtools $(PTHREAD_LIBS)
diff --git a/framework/common/Makefile.am b/framework/common/Makefile.am
index d2de886..84c4297 100644
--- a/framework/common/Makefile.am
+++ b/framework/common/Makefile.am
@@ -114,7 +114,8 @@ noinst_HEADERS = \
tnt/util.h
libtntnet_la_CXXFLAGS = -DPKGLIBDIR=\"@libdir@/@PACKAGE@\" $(PTHREAD_CFLAGS)
-libtntnet_la_LDFLAGS = -version-info @sonumber@ -lz -lcxxtools $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+libtntnet_la_LDFLAGS = -version-info @sonumber@ @SHARED_LIB_FLAG@
+libtntnet_la_LIBADD = -lz -lcxxtools $(PTHREAD_LIBS)
if MAKE_GNUTLS
libtntnet_la_SOURCES += \
@@ -125,7 +126,7 @@ noinst_HEADERS += \
tnt/gcryptinit.h \
tnt/gnutls.h
-libtntnet_la_LDFLAGS += -lgnutls -lgcrypt
+libtntnet_la_LIBADD += -lgnutls -lgcrypt
endif
if MAKE_OPENSSL
@@ -135,7 +136,7 @@ libtntnet_la_SOURCES += \
noinst_HEADERS += \
tnt/openssl.h
-libtntnet_la_LDFLAGS += -lssl -lcrypto
+libtntnet_la_LIBADD += -lssl -lcrypto
endif
if MAKE_STRESSJOB
diff --git a/framework/defcomp/Makefile.am b/framework/defcomp/Makefile.am
index a053e1a..2f33529 100644
--- a/framework/defcomp/Makefile.am
+++ b/framework/defcomp/Makefile.am
@@ -14,5 +14,5 @@ tntnet_la_SOURCES = \
static.h
tntnet_la_CXXFLAGS = $(PTHREAD_CFLAGS)
-tntnet_la_LDFLAGS = -module -version-info @sonumber@ $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-tntnet_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+tntnet_la_LDFLAGS = -module -version-info @sonumber@ @SHARED_LIB_FLAG@
+tntnet_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
diff --git a/framework/runtime/Makefile.am b/framework/runtime/Makefile.am
index e318ab7..4c59be4 100644
--- a/framework/runtime/Makefile.am
+++ b/framework/runtime/Makefile.am
@@ -9,7 +9,6 @@ tntnet_SOURCES = \
nobase_include_HEADERS = \
tnt/process.h
-tntnet_LDFLAGS = $(PTHREAD_LIBS)
-tntnet_LDADD = $(top_builddir)/framework/common/libtntnet.la
+tntnet_LDADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
tntnet_CXXFLAGS=-DTNTNET_CONF=\"@sysconfdir@/tntnet/tntnet.conf\" -DTNTNET_PID=\"@localstatedir@/tntnet.pid\" $(PTHREAD_CFLAGS)
diff --git a/sdk/demos/Makefile.am b/sdk/demos/Makefile.am
index f6a93f8..cea7468 100644
--- a/sdk/demos/Makefile.am
+++ b/sdk/demos/Makefile.am
@@ -10,8 +10,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-alldemos_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-alldemos_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+alldemos_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+alldemos_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.properties
CLEANFILES = alldemos.cpp tntnet.properties
diff --git a/sdk/demos/calc/Makefile.am b/sdk/demos/calc/Makefile.am
index 7b14f3c..339b12a 100644
--- a/sdk/demos/calc/Makefile.am
+++ b/sdk/demos/calc/Makefile.am
@@ -8,8 +8,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-calc_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-calc_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+calc_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+calc_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = calc.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/calcajax/Makefile.am b/sdk/demos/calcajax/Makefile.am
index c569868..020df8b 100644
--- a/sdk/demos/calcajax/Makefile.am
+++ b/sdk/demos/calcajax/Makefile.am
@@ -12,8 +12,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-calcajax_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-calcajax_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+calcajax_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+calcajax_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = calcajax.cpp calcajax_js.cpp docalc.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/calci18n/Makefile.am b/sdk/demos/calci18n/Makefile.am
index d334ffe..2952da4 100644
--- a/sdk/demos/calci18n/Makefile.am
+++ b/sdk/demos/calci18n/Makefile.am
@@ -16,8 +16,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-calci18n_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-calci18n_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+calci18n_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+calci18n_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties calci18n.txt calci18n.fi calci18n.de
CLEANFILES = calci18n.cpp tntnet.conf tntnet.properties \
diff --git a/sdk/demos/calcmvc/Makefile.am b/sdk/demos/calcmvc/Makefile.am
index 9b4baaa..bc37b2a 100644
--- a/sdk/demos/calcmvc/Makefile.am
+++ b/sdk/demos/calcmvc/Makefile.am
@@ -18,8 +18,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-calcmvc_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-calcmvc_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+calcmvc_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+calcmvc_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = calcController.cpp calcModel.cpp calcView.cpp calcmvc.cpp \
diff --git a/sdk/demos/chat/Makefile.am b/sdk/demos/chat/Makefile.am
index 72fa35c..7816390 100644
--- a/sdk/demos/chat/Makefile.am
+++ b/sdk/demos/chat/Makefile.am
@@ -21,8 +21,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-chat_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-chat_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+chat_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+chat_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = chat.cpp ajax.cpp getchat.cpp putchat.cpp \
diff --git a/sdk/demos/comp/Makefile.am b/sdk/demos/comp/Makefile.am
index e60bdb1..be56430 100644
--- a/sdk/demos/comp/Makefile.am
+++ b/sdk/demos/comp/Makefile.am
@@ -14,10 +14,10 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-comp_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-comp_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
-extlib_la_LDFLAGS = -module $(PTHREAD_LIBS)
-extlib_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+comp_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+comp_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
+extlib_la_LDFLAGS = -module
+extlib_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = comp.cpp subcomp.cpp extcomp.cpp \
diff --git a/sdk/demos/config/Makefile.am b/sdk/demos/config/Makefile.am
index 824341c..94282df 100644
--- a/sdk/demos/config/Makefile.am
+++ b/sdk/demos/config/Makefile.am
@@ -8,8 +8,8 @@ nodist_config_la_SOURCES = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-config_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-config_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+config_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+config_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = config.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/controls/Makefile.am b/sdk/demos/controls/Makefile.am
index 34dabd3..f7f414b 100644
--- a/sdk/demos/controls/Makefile.am
+++ b/sdk/demos/controls/Makefile.am
@@ -35,8 +35,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-controls_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-controls_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+controls_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+controls_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = tntnet.properties \
diff --git a/sdk/demos/cookie/Makefile.am b/sdk/demos/cookie/Makefile.am
index a604e47..6360e8f 100644
--- a/sdk/demos/cookie/Makefile.am
+++ b/sdk/demos/cookie/Makefile.am
@@ -8,8 +8,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-cookie_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-cookie_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+cookie_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+cookie_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = cookie.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/hello/Makefile.am b/sdk/demos/hello/Makefile.am
index cb4c246..639894d 100644
--- a/sdk/demos/hello/Makefile.am
+++ b/sdk/demos/hello/Makefile.am
@@ -10,8 +10,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-hello_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-hello_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+hello_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+hello_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = hello.cpp tntnet.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/rajax-jquery/Makefile.am b/sdk/demos/rajax-jquery/Makefile.am
index 259eac5..a1832fd 100644
--- a/sdk/demos/rajax-jquery/Makefile.am
+++ b/sdk/demos/rajax-jquery/Makefile.am
@@ -18,8 +18,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-message_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-message_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+message_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+message_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = get.cpp jquery.cpp message.cpp put.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/savepoint/Makefile.am b/sdk/demos/savepoint/Makefile.am
index 0f4a5a2..a357d56 100644
--- a/sdk/demos/savepoint/Makefile.am
+++ b/sdk/demos/savepoint/Makefile.am
@@ -8,8 +8,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-savepoint_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-savepoint_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+savepoint_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+savepoint_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = savepoint.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/session/Makefile.am b/sdk/demos/session/Makefile.am
index 1809d64..b30dd03 100644
--- a/sdk/demos/session/Makefile.am
+++ b/sdk/demos/session/Makefile.am
@@ -10,8 +10,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-session_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-session_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+session_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+session_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = session.cpp appsession.cpp \
diff --git a/sdk/demos/sprintf/Makefile.am b/sdk/demos/sprintf/Makefile.am
index bd0ac73..7b0a0af 100644
--- a/sdk/demos/sprintf/Makefile.am
+++ b/sdk/demos/sprintf/Makefile.am
@@ -10,8 +10,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-sprintf_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-sprintf_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+sprintf_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+sprintf_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = sprintf.cpp subcomp.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/strings/Makefile.am b/sdk/demos/strings/Makefile.am
index 804a177..4f8b876 100644
--- a/sdk/demos/strings/Makefile.am
+++ b/sdk/demos/strings/Makefile.am
@@ -8,8 +8,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-strings_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-strings_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+strings_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+strings_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = strings.cpp tntnet.conf tntnet.properties
diff --git a/sdk/demos/upload/Makefile.am b/sdk/demos/upload/Makefile.am
index 7082caa..da4ea88 100644
--- a/sdk/demos/upload/Makefile.am
+++ b/sdk/demos/upload/Makefile.am
@@ -8,8 +8,8 @@ EXTRA_DIST = \
AM_CPPFLAGS = -I$(top_srcdir)/framework/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-upload_la_LDFLAGS = -module $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
-upload_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
+upload_la_LDFLAGS = -module @SHARED_LIB_FLAG@
+upload_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la $(PTHREAD_LIBS)
noinst_DATA = tntnet.conf tntnet.properties
CLEANFILES = upload.cpp tntnet.conf tntnet.properties
diff --git a/sdk/tools/common/Makefile.am b/sdk/tools/common/Makefile.am
index a107070..d1b68a8 100644
--- a/sdk/tools/common/Makefile.am
+++ b/sdk/tools/common/Makefile.am
@@ -16,4 +16,5 @@ libtntnet_sdk_la_SOURCES = \
tnt/stringescaper.h
libtntnet_sdk_la_CXXFLAGS = $(PTHREAD_CFLAGS)
-libtntnet_sdk_la_LDFLAGS = -version-info @sonumber@ -lcxxtools $(PTHREAD_LIBS) @SHARED_LIB_FLAG@
+libtntnet_sdk_la_LDFLAGS = -version-info @sonumber@ @SHARED_LIB_FLAG@
+libtntnet_sdk_la_LIBADD = -lcxxtools $(PTHREAD_LIBS)
diff --git a/sdk/tools/ecppc/Makefile.am b/sdk/tools/ecppc/Makefile.am
index d740df6..e4b1166 100644
--- a/sdk/tools/ecppc/Makefile.am
+++ b/sdk/tools/ecppc/Makefile.am
@@ -20,8 +20,7 @@ ecppc_SOURCES = \
tnt/ecppc/subcomponent.h \
tnt/ecppc/variable.h
-ecppc_LDADD = $(top_builddir)/framework/common/libtntnet.la $(top_builddir)/sdk/tools/common/libtntnet_sdk.la
+ecppc_LDADD = $(top_builddir)/framework/common/libtntnet.la $(top_builddir)/sdk/tools/common/libtntnet_sdk.la -lcxxtools $(PTHREAD_LIBS)
AM_CPPFLAGS = -I$(top_srcdir)/framework/common -I$(top_srcdir)/sdk/tools/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-AM_LDFLAGS = -lcxxtools $(PTHREAD_LIBS)
diff --git a/sdk/tools/ecppl/Makefile.am b/sdk/tools/ecppl/Makefile.am
index b658f40..64d8a9f 100644
--- a/sdk/tools/ecppl/Makefile.am
+++ b/sdk/tools/ecppl/Makefile.am
@@ -5,8 +5,7 @@ ecppl_SOURCES = \
ecpplang.cpp \
ecpplang.h
-ecppl_LDADD = $(top_builddir)/sdk/tools/common/libtntnet_sdk.la
+ecppl_LDADD = $(top_builddir)/sdk/tools/common/libtntnet_sdk.la -lcxxtools $(PTHREAD_LIBS)
AM_CPPFLAGS = -I$(top_srcdir)/framework/common -I$(top_srcdir)/sdk/tools/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-AM_LDFLAGS = -lcxxtools $(PTHREAD_LIBS)
diff --git a/sdk/tools/ecppll/Makefile.am b/sdk/tools/ecppll/Makefile.am
index 3782acb..85b24d1 100644
--- a/sdk/tools/ecppll/Makefile.am
+++ b/sdk/tools/ecppll/Makefile.am
@@ -3,8 +3,7 @@ bin_PROGRAMS = ecppll
ecppll_SOURCES = \
ecppll.cpp
-ecppll_LDADD = $(top_builddir)/sdk/tools/common/libtntnet_sdk.la
+ecppll_LDADD = $(top_builddir)/sdk/tools/common/libtntnet_sdk.la -lcxxtools $(PTHREAD_LIBS)
AM_CPPFLAGS = -I$(top_srcdir)/framework/common -I$(top_srcdir)/sdk/tools/common
AM_CXXFLAGS = $(PTHREAD_CFLAGS)
-AM_LDFLAGS = -lcxxtools $(PTHREAD_LIBS)
diff --git a/utest/Makefile.am b/utest/Makefile.am
index 2f662ae..d4cdef1 100644
--- a/utest/Makefile.am
+++ b/utest/Makefile.am
@@ -7,5 +7,4 @@ utest_SOURCES = \
testmain.cpp \
strutest.cpp
-utest_LDFLAGS = -lcxxtools-unit
-utest_LDADD = $(top_builddir)/framework/common/libtntnet.la
+utest_LDADD = $(top_builddir)/framework/common/libtntnet.la -lcxxtools-unit
--
1.7.3.4
|