Restore LINK_MAP linker options

Removing invalid TO_LINKER missed a few segments where it was used.
This fixes the ability to enable link maps
This commit is contained in:
Seth Hillbrand 2019-03-14 22:13:09 -07:00
parent 5619cc41f9
commit f96d16eba3
8 changed files with 15 additions and 15 deletions

View File

@ -86,6 +86,6 @@ endif()
if( false ) # linker map with cross reference if( false ) # linker map with cross reference
set_target_properties( bitmap2component PROPERTIES set_target_properties( bitmap2component PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=bitmap2component.map" LINK_FLAGS "-Wl,-cref,-Map=bitmap2component.map"
) )
endif() endif()

View File

@ -668,7 +668,7 @@ if( false ) # future
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( _kiway PROPERTIES set_target_properties( _kiway PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=_kiway.so.map" LINK_FLAGS "-Wl,-cref,-Map=_kiway.so.map"
) )
endif() endif()

View File

@ -92,7 +92,7 @@ if( false ) # no CVPCB exe any more, only the *.kiface
) )
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( cvpcb PROPERTIES set_target_properties( cvpcb PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=cvpcb.map" ) LINK_FLAGS "-Wl,-cref,-Map=cvpcb.map" )
endif() endif()
if( APPLE ) if( APPLE )
@ -182,7 +182,7 @@ set_source_files_properties( cvpcb.cpp PROPERTIES
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( cvpcb_kiface PROPERTIES set_target_properties( cvpcb_kiface PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=_cvpcb.kiface.map" ) LINK_FLAGS "-Wl,-cref,-Map=_cvpcb.kiface.map" )
endif() endif()
# these 2 binaries are a matched set, keep them together: # these 2 binaries are a matched set, keep them together:

View File

@ -382,10 +382,10 @@ add_dependencies( eeschema eeschema_kiface )
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
# generate link map with cross reference # generate link map with cross reference
set_target_properties( eeschema_kiface PROPERTIES set_target_properties( eeschema_kiface PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=${KIFACE_PREFIX}eeschema${KIFACE_SUFFIX}.map" LINK_FLAGS "-Wl,-cref,-Map=${KIFACE_PREFIX}eeschema${KIFACE_SUFFIX}.map"
) )
set_target_properties( eeschema PROPERTIES set_target_properties( eeschema PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=eeschema.map" LINK_FLAGS "-Wl,-cref,-Map=eeschema.map"
) )
endif() endif()

View File

@ -125,7 +125,7 @@ target_link_libraries( gerbview
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( gerbview PROPERTIES set_target_properties( gerbview PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=gerbview.map" ) LINK_FLAGS "-Wl,-cref,-Map=gerbview.map" )
endif() endif()
# the main gerbview program, in DSO form. # the main gerbview program, in DSO form.
@ -160,7 +160,7 @@ set_source_files_properties( gerbview.cpp PROPERTIES
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( gerbview_kiface PROPERTIES set_target_properties( gerbview_kiface PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=_gerbview.kiface.map" ) LINK_FLAGS "-Wl,-cref,-Map=_gerbview.kiface.map" )
endif() endif()
# if building gerbview, then also build gerbview_kiface if out of date. # if building gerbview, then also build gerbview_kiface if out of date.

View File

@ -97,7 +97,7 @@ target_link_libraries( pl_editor
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( pl_editor PROPERTIES set_target_properties( pl_editor PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=pl_editor.map" ) LINK_FLAGS "-Wl,-cref,-Map=pl_editor.map" )
endif() endif()
# the main pl_editor program, in DSO form. # the main pl_editor program, in DSO form.
@ -132,7 +132,7 @@ set_source_files_properties( pl_editor.cpp PROPERTIES
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( pl_editor_kiface PROPERTIES set_target_properties( pl_editor_kiface PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=_pl_editor.kiface.map" ) LINK_FLAGS "-Wl,-cref,-Map=_pl_editor.kiface.map" )
endif() endif()
# if building pl_editor, then also build pl_editor_kiface if out of date. # if building pl_editor, then also build pl_editor_kiface if out of date.

View File

@ -72,7 +72,7 @@ target_link_libraries( pcb_calculator
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( pcb_calculator PROPERTIES set_target_properties( pcb_calculator PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=pcb_calculator.map" ) LINK_FLAGS "-Wl,-cref,-Map=pcb_calculator.map" )
endif() endif()
# the main pcb_calculator program, in DSO form. # the main pcb_calculator program, in DSO form.
@ -96,7 +96,7 @@ set_source_files_properties( pcb_calculator.cpp PROPERTIES
if( MAKE_LINK_MAPS ) if( MAKE_LINK_MAPS )
set_target_properties( pcb_calculator_kiface PROPERTIES set_target_properties( pcb_calculator_kiface PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=_pcb_calculator.kiface.map" ) LINK_FLAGS "-Wl,-cref,-Map=_pcb_calculator.kiface.map" )
endif() endif()
# if building pcb_calculator, then also build pcb_calculator_kiface if out of date. # if building pcb_calculator, then also build pcb_calculator_kiface if out of date.

View File

@ -631,7 +631,7 @@ target_link_libraries( pcbnew
if( PCBNEW_LINK_MAPS ) if( PCBNEW_LINK_MAPS )
set_target_properties( pcbnew PROPERTIES set_target_properties( pcbnew PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=pcbnew.map" ) LINK_FLAGS "-Wl,-cref,-Map=pcbnew.map" )
endif() endif()
# the main pcbnew program, in DSO form. # the main pcbnew program, in DSO form.
@ -699,10 +699,10 @@ set_source_files_properties( pcbnew.cpp PROPERTIES
if( PCBNEW_LINK_MAPS ) if( PCBNEW_LINK_MAPS )
set_target_properties( pcbnew_kiface PROPERTIES set_target_properties( pcbnew_kiface PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=_pcbnew.kiface.map" LINK_FLAGS "-Wl,-cref,-Map=_pcbnew.kiface.map"
) )
set_target_properties( pcbnew PROPERTIES set_target_properties( pcbnew PROPERTIES
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=pcbnew.map" LINK_FLAGS "-Wl,-cref,-Map=pcbnew.map"
) )
endif() endif()