Skip to content

Commit b5a5d50

Browse files
authored
Merge pull request #742 from DanielSant0s/disable-lto-on-erl-libs
fix: disable LTO when compiling ERL libraries
2 parents 7ba7c3f + f80ed1c commit b5a5d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ee/Rules.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ $(EE_LIB): $(EE_LIB)_tmp$(MAKE_CURPID)
125125

126126
$(EE_LIB:%.a=%.erl): $(EE_OBJS)
127127
$(DIR_GUARD)
128-
$(EE_CC) -nostdlib $(EE_NO_CRT) -Wl,-r -Wl,-d -o $(EE_LIB:%.a=%.erl) $(EE_OBJS)
128+
$(EE_CC) -nostdlib $(EE_NO_CRT) -flinker-output=nolto-rel -Wl,-r -Wl,-d -o $(EE_LIB:%.a=%.erl) $(EE_OBJS)
129129
$(EE_STRIP) --strip-unneeded -R .mdebug.eabi64 -R .reginfo -R .comment $(EE_LIB:%.a=%.erl)

0 commit comments

Comments
 (0)