152
152
ALLSYMSFLAGS='-Wl,--whole-archive'; \
153
153
NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
154
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
154
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
156
156
DO_GNU_APP=LDFLAGS="$(CFLAGS)"
236
236
@ $(CALC_VERSIONS); \
237
237
INHIBIT_SYMLINKS=yes; \
238
238
SHLIB=cyg$(LIBNAME); \
239
expr $(PLATFORM) : 'mingw' > /dev/null && SHLIB=$(LIBNAME)eay32; \
239
base=-Wl,--enable-auto-image-base; \
240
if expr $(PLATFORM) : 'mingw' > /dev/null; then \
241
SHLIB=$(LIBNAME)eay32; base=; \
240
243
SHLIB_SUFFIX=.dll; \
241
244
LIBVERSION="$(LIBVERSION)"; \
242
245
SHLIB_SOVER=${LIBVERSION:+"-$(LIBVERSION)"}; \
243
246
ALLSYMSFLAGS='-Wl,--whole-archive'; \
244
247
NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
245
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a"; \
248
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a"; \
248
251
@ $(CALC_VERSIONS); \
249
252
INHIBIT_SYMLINKS=yes; \
250
253
SHLIB=cyg$(LIBNAME); \
251
expr $(PLATFORM) : 'mingw' > /dev/null && SHLIB=$(LIBNAME)eay32; \
254
base=-Wl,--enable-auto-image-base; \
255
if expr $(PLATFORM) : 'mingw' > /dev/null; then \
256
SHLIB=$(LIBNAME)eay32; \
257
base=; [ $(LIBNAME) = "crypto" ] && base=-Wl,--image-base,0x63000000; \
252
259
SHLIB_SUFFIX=.dll; \
253
260
SHLIB_SOVER=-$(LIBVERSION); \
254
261
ALLSYMSFLAGS='-Wl,--whole-archive'; \
255
262
NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
256
base=; [ $(LIBNAME) = "crypto" ] && base=-Wl,--image-base,0x63000000; \
257
263
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a"; \
258
264
[ -f apps/$$SHLIB$$SHLIB_SUFFIX ] && rm apps/$$SHLIB$$SHLIB_SUFFIX; \
259
265
[ -f test/$$SHLIB$$SHLIB_SUFFIX ] && rm test/$$SHLIB$$SHLIB_SUFFIX; \
279
285
ALLSYMSFLAGS='-all'; \
280
286
NOALLSYMSFLAGS='-none'; \
281
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared"; \
287
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-B,symbolic"; \
282
288
if [ -n "$$SHLIB_HIST" ]; then \
283
289
SHAREDFLAGS="$$SHAREDFLAGS -set_version $$SHLIB_HIST"; \
300
306
ALLSYMSFLAGS='-all'; \
301
307
NOALLSYMSFLAGS='-none'; \
302
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared"; \
308
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-B,symbolic"; \
303
309
if [ -n "$$SHLIB_HIST" ]; then \
304
310
SHAREDFLAGS="$$SHAREDFLAGS -set_version $$SHLIB_HIST"; \
422
428
($(CC) -v 2>&1 | grep gcc) > /dev/null && MINUSWL="-Wl,"; \
423
429
ALLSYMSFLAGS="$${MINUSWL}-all"; \
424
430
NOALLSYMSFLAGS="$${MINUSWL}-none"; \
425
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
431
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX,-B,symbolic"; \
436
442
($(CC) -v 2>&1 | grep gcc) > /dev/null && MINUSWL="-Wl,"; \
437
443
ALLSYMSFLAGS="$${MINUSWL}-all"; \
438
444
NOALLSYMSFLAGS="$${MINUSWL}-none"; \
439
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
445
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-soname,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX,-B,symbolic"; \
460
466
ALLSYMSFLAGS='-Wl,-Fl'; \
461
467
NOALLSYMSFLAGS=''; \
462
468
expr $(PLATFORM) : 'hpux64' > /dev/null && ALLSYMSFLAGS='-Wl,+forceload'; \
463
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+h,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
469
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+h,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX,+cdp,../:,+cdp,./:"; \
465
471
rm -f $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX || :; \
466
472
$(LINK_SO_O) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX
473
479
ALLSYMSFLAGS='-Wl,-Fl'; \
474
480
NOALLSYMSFLAGS=''; \
475
481
expr $(PLATFORM) : 'hpux64' > /dev/null && ALLSYMSFLAGS='-Wl,+forceload'; \
476
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+h,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"; \
482
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+h,$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX,+cdp,../:,+cdp,./:"; \
478
484
rm -f $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX || :; \
479
485
$(LINK_SO_A) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX
487
493
@ $(CALC_VERSIONS); \
488
OBJECT_MODE=`expr x$(SHARED_LDFLAGS) : 'x\-[a-z]\([0-9]*\)'`; \
494
OBJECT_MODE=`expr x$(SHARED_LDFLAGS) : 'x\-[a-z]*\(64\)'` || :; \
489
495
OBJECT_MODE=$${OBJECT_MODE:-32}; export OBJECT_MODE; \
490
496
SHLIB=lib$(LIBNAME).so; \
492
ALLSYMSFLAGS='-bnogc'; \
493
499
NOALLSYMSFLAGS=''; \
494
SHAREDFLAGS='$(CFLAGS) $(SHARED_LDFLAGS) -G -bE:lib$(LIBNAME).exp -bM:SRE'; \
495
$(LINK_SO_O); rm -rf lib$(LIBNAME).exp
500
SHAREDFLAGS='$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-G,-bexpall,-bnolibpath,-bM:SRE'; \
497
503
@ $(CALC_VERSIONS); \
498
OBJECT_MODE=`expr x$(SHARED_LDFLAGS) : 'x\-[a-z]\([0-9]*\)'`; \
504
OBJECT_MODE=`expr x$(SHARED_LDFLAGS) : 'x\-[a-z]*\(64\)'` || : ; \
499
505
OBJECT_MODE=$${OBJECT_MODE:-32}; export OBJECT_MODE; \
500
506
SHLIB=lib$(LIBNAME).so; \
502
508
ALLSYMSFLAGS='-bnogc'; \
503
509
NOALLSYMSFLAGS=''; \
504
SHAREDFLAGS='$(CFLAGS) $(SHARED_LDFLAGS) -G -bE:lib$(LIBNAME).exp -bM:SRE'; \
510
SHAREDFLAGS='$(CFLAGS) $(SHARED_LDFLAGS) -Wl,-G,-bexpall,-bnolibpath,-bM:SRE'; \
505
511
$(LINK_SO_A_VIA_O)
507
LDFLAGS="$(CFLAGS) -blibpath:$(LIBRPATH):$${LIBPATH:-/usr/lib:/lib}"; \
513
LDFLAGS="$(CFLAGS) -Wl,-brtl,-blibpath:$(LIBRPATH):$${LIBPATH:-/usr/lib:/lib}"; \
510
516
link_o.reliantunix: