derle.sh 356 B

12345678910
  1. _majorver=${surum%.*}
  2. sed "s/%VER%/$_majorver/g;s/%REL%/$surum/g" $SRC/lua.pc > lua.pc
  3. # Lua 5.3.4 has wrong release version in its Makefile. Fix it.
  4. sed "s/^R= \$V.4/R= \$V.5/" -i Makefile
  5. # quite a lot of packages still use lua 5.1 API, enable 5.1 compat mode
  6. make MYCFLAGS="$CFLAGS -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" MYLDFLAGS="$LDFLAGS" linux