~ubuntu-branches/ubuntu/karmic/openssl/karmic-proposed

« back to all changes in this revision

Viewing changes to Makefile.shared

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-05 00:13:39 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071205001339-tazlol313zs8u6ec
Tags: 0.9.8g-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure: Add support for lpia.
  - Replace duplicate files in the doc directory with symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        SHLIB_SUFFIX=; \
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"
155
155
 
156
156
DO_GNU_APP=LDFLAGS="$(CFLAGS)"
157
157
 
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=; \
 
242
        fi; \
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"; \
246
249
        $(LINK_SO_O)
247
250
link_a.cygwin:
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; \
 
258
        fi; \
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; \
278
284
                SHLIB_SOVER=; \
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"; \
284
290
                fi; \
299
305
                SHLIB_SOVER=; \
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"; \
305
311
                fi; \
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"; \
426
432
        fi; \
427
433
        $(LINK_SO_O)
428
434
link_a.irix:
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"; \
440
446
        fi; \
441
447
        $(LINK_SO_A)
442
448
link_app.irix:
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,./:"; \
464
470
        fi; \
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,./:"; \
477
483
        fi; \
478
484
        rm -f $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX || :; \
479
485
        $(LINK_SO_A) && chmod a=rx $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX
485
491
 
486
492
link_o.aix:
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; \
491
497
        SHLIB_SUFFIX=; \
492
 
        ALLSYMSFLAGS='-bnogc'; \
 
498
        ALLSYMSFLAGS=''; \
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'; \
 
501
        $(LINK_SO_O);
496
502
link_a.aix:
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; \
501
507
        SHLIB_SUFFIX=; \
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)
506
512
link_app.aix:
507
 
        LDFLAGS="$(CFLAGS) -blibpath:$(LIBRPATH):$${LIBPATH:-/usr/lib:/lib}"; \
 
513
        LDFLAGS="$(CFLAGS) -Wl,-brtl,-blibpath:$(LIBRPATH):$${LIBPATH:-/usr/lib:/lib}"; \
508
514
        $(LINK_APP)
509
515
 
510
516
link_o.reliantunix: