mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Programs will be, by default, linke with "-Wl,--as-needed" to
reduce unused library dependencies.
This commit is contained in:
@ -32,6 +32,11 @@ rule MakeProgramPrivate
|
||||
CFLAGS on $(objects) += $(4) ;
|
||||
C++FLAGS on $(objects) += $(4) ;
|
||||
|
||||
if $(REMOVE_UNUSED_DEPENDENCIES_TRICK) = 1 {
|
||||
# remove unused dependencies in binaries, as U.Drepper prescribed ;-)
|
||||
LINKFLAGS on $(target) = -Wl,--as-needed [ on $(target) return $(LINKFLAGS) ] ;
|
||||
}
|
||||
|
||||
LINKLIBS on $(target) = $(3) [ on $(target) return $(LINKLIBS) ] ;
|
||||
|
||||
MainFromObjects $(target) : $(objects) ;
|
||||
|
Reference in New Issue
Block a user