mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-02 12:13:10 +02:00
Build Ruby with LTO enabled (#16)
This commit is contained in:
parent
10cdc672dd
commit
580da08dc3
3 changed files with 12 additions and 3 deletions
|
@ -333,7 +333,10 @@ $(BUILD_PREFIX)/libruby.so.3.1: $(DOWNLOADS)/ruby/Makefile
|
|||
|
||||
$(DOWNLOADS)/ruby/Makefile: $(DOWNLOADS)/ruby/configure
|
||||
cd $(DOWNLOADS)/ruby; \
|
||||
$(CONFIGURE) $(RUBY_CONFIGURE_ARGS) $(RUBY_FLAGS)
|
||||
export $(CONFIGURE_ENV); \
|
||||
export CFLAGS="-flto=full $$CFLAGS"; \
|
||||
export LDFLAGS="-flto=full $$LDFLAGS"; \
|
||||
./configure $(CONFIGURE_ARGS) $(RUBY_CONFIGURE_ARGS) $(RUBY_FLAGS)
|
||||
|
||||
$(DOWNLOADS)/ruby/configure: $(DOWNLOADS)/ruby/*.c
|
||||
cd $(DOWNLOADS)/ruby; autoreconf -i
|
||||
|
|
|
@ -311,7 +311,10 @@ $(LIBDIR)/libruby.3.1.dylib: $(DOWNLOADS)/ruby/Makefile
|
|||
|
||||
$(DOWNLOADS)/ruby/Makefile: $(DOWNLOADS)/ruby/configure
|
||||
cd $(DOWNLOADS)/ruby; \
|
||||
$(CONFIGURE) $(RUBY_CONFIGURE_ARGS) $(RUBY_FLAGS)
|
||||
export $(CONFIGURE_ENV); \
|
||||
export CFLAGS="-flto=full $$CFLAGS"; \
|
||||
export LDFLAGS="-flto=full $$LDFLAGS"; \
|
||||
./configure $(CONFIGURE_ARGS) $(RUBY_CONFIGURE_ARGS) $(RUBY_FLAGS)
|
||||
|
||||
$(DOWNLOADS)/ruby/configure: $(DOWNLOADS)/ruby/*.c
|
||||
cd $(DOWNLOADS)/ruby; autoreconf -i
|
||||
|
|
|
@ -320,7 +320,10 @@ $(BUILD_PREFIX)/$(RB_PREFIX)-ruby310.dll: $(DOWNLOADS)/ruby/Makefile
|
|||
|
||||
$(DOWNLOADS)/ruby/Makefile: $(DOWNLOADS)/ruby/configure
|
||||
cd $(DOWNLOADS)/ruby; \
|
||||
$(CONFIGURE) $(RUBY_CONFIGURE_ARGS) $(RUBY_FLAGS)
|
||||
export $(CONFIGURE_ENV); \
|
||||
export CFLAGS="-flto $$CFLAGS"; \
|
||||
export LDFLAGS="-flto $$LDFLAGS"; \
|
||||
./configure $(CONFIGURE_ARGS) $(RUBY_CONFIGURE_ARGS) $(RUBY_FLAGS)
|
||||
|
||||
$(DOWNLOADS)/ruby/configure: $(DOWNLOADS)/ruby/*.c
|
||||
cd $(DOWNLOADS)/ruby; autoreconf -i
|
||||
|
|
Loading…
Add table
Reference in a new issue