History

lua: enable native target

Boris Nagaev committed 10 years ago

Commit 08488f91 parent 580be671 file · +7 −8Browse files

Unified · Split

src/lua.mk+7−8
@@ -10,7 +10,9 @@ $(PKG)_CHECKSUM := c740c7bb23a936944e1cc63b7c3c5351a8976d7867c5252c8854f7b2af9da · 9 unmodified lines
1010 $(PKG)_SUBDIR := lua-$($(PKG)_VERSION)
1111 $(PKG)_FILE := lua-$($(PKG)_VERSION).tar.gz
1212 $(PKG)_URL := http://www.lua.org/ftp/$($(PKG)_FILE)
13+$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
1314 $(PKG)_DEPS := gcc
15+$(PKG)_DEPS_$(BUILD) :=
1416
1517 define $(PKG)_UPDATE
1618 $(WGET) -q -O- 'http://www.lua.org/download.html' | \
@@ -73,14 +75,11 @@ define $(PKG)_BUILD_SHARED · 56 unmodified lines
7375 $($(PKG)_BUILD_COMMON)
7476 endef
7577
76−# disable native build temporarily
77−define $(PKG)_BUILD_DISABLED
78+define $(PKG)_BUILD_$(BUILD)
7879 $(MAKE) -C '$(1)/src' -j '$(JOBS)' \
79− INSTALL_TOP='$(PREFIX)/$(TARGET)' \
80− INSTALL='$(INSTALL)' \
8180 PLAT=$(shell ([ `uname -s` == Darwin ] && echo "macosx") || echo `uname -s` | tr '[:upper:]' '[:lower:]')
82− $(MAKE) -C '$(1)' -j 1 \
83− INSTALL_TOP='$(PREFIX)/$(TARGET)' \
84− INSTALL='$(INSTALL)' \
85− install
81+ $(INSTALL) '$(1)/src/lua' '$(PREFIX)/bin/$(BUILD)-lua'
82+ ln -sf '$(BUILD)-lua' '$(PREFIX)/bin/lua'
83+ $(INSTALL) '$(1)/src/luac' '$(PREFIX)/bin/$(BUILD)-luac'
84+ ln -sf '$(BUILD)-luac' '$(PREFIX)/bin/luac'
8685 endef

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t