equal
deleted
inserted
replaced
552 # only be required if the component's native build is horribly broken. |
552 # only be required if the component's native build is horribly broken. |
553 LD_Z_RESCAN_NOW = -z rescan-now |
553 LD_Z_RESCAN_NOW = -z rescan-now |
554 |
554 |
555 LD_Z_TEXT = -z direct |
555 LD_Z_TEXT = -z direct |
556 |
556 |
|
557 # make sure that -lc is always present when building shared objects. |
|
558 LD_DEF_LIBS += -lc |
|
559 |
557 # make sure all symbols are defined. |
560 # make sure all symbols are defined. |
558 LD_Z_DEFS = -z defs |
561 LD_Z_DEFS = -z defs |
559 |
562 |
560 # eliminate unreferenced dynamic dependencies |
563 # eliminate unreferenced dynamic dependencies |
561 LD_Z_IGNORE = -z ignore |
564 LD_Z_IGNORE = -z ignore |
585 |
588 |
586 # Page alignment |
589 # Page alignment |
587 LD_MAP_PAGEALIGN = -M /usr/lib/ld/map.pagealign |
590 LD_MAP_PAGEALIGN = -M /usr/lib/ld/map.pagealign |
588 |
591 |
589 # Linker options to add when only building libraries |
592 # Linker options to add when only building libraries |
590 LD_OPTIONS_SO += $(LD_Z_TEXT) $(LD_Z_DEFS) |
593 LD_OPTIONS_SO += $(LD_Z_TEXT) $(LD_Z_DEFS) $(LD_DEF_LIBS) |
591 |
594 |
592 # Default linker options that everyone should get. Do not add additional |
595 # Default linker options that everyone should get. Do not add additional |
593 # libraries to this macro, as it will apply to everything linked during the |
596 # libraries to this macro, as it will apply to everything linked during the |
594 # component build. |
597 # component build. |
595 LD_OPTIONS += $(LD_MAP_NOEXSTK.$(MACH)) $(LD_MAP_NOEXDATA.$(MACH)) \ |
598 LD_OPTIONS += $(LD_MAP_NOEXSTK.$(MACH)) $(LD_MAP_NOEXDATA.$(MACH)) \ |