summaryrefslogtreecommitdiff
path: root/lua-cjson.spec
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-12-08 20:57:12 +1030
committerMark Pulford <mark@kyne.com.au>2011-12-08 20:57:12 +1030
commitbd994cd7976ac93c530792e3c0d6f45a33c757b4 (patch)
tree6e5a4dd5d1b01e71d66f3cfe3d8e8c39d1410480 /lua-cjson.spec
parentbea23facc1644cffa53ecc84fa236806e9c94dfd (diff)
downloadlua-cjson-bd994cd7976ac93c530792e3c0d6f45a33c757b4.tar.gz
lua-cjson-bd994cd7976ac93c530792e3c0d6f45a33c757b4.tar.bz2
lua-cjson-bd994cd7976ac93c530792e3c0d6f45a33c757b4.zip
Fix Makefile for use with non-GNU make
- Remove GNU make "override" statements. - Add OBJS variable since there is no portable way to specify all targets for linking. Also: - Put build defaults at the top to avoid potential confusion. - Don't assume a Linux platform. Default to USE_POSIX_SETLOCALE. - Change "install -d" to mkdir/install since the former isn't available on some platforms (Solaris).
Diffstat (limited to 'lua-cjson.spec')
-rw-r--r--lua-cjson.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua-cjson.spec b/lua-cjson.spec
index ca502b3..07064e9 100644
--- a/lua-cjson.spec
+++ b/lua-cjson.spec
@@ -24,12 +24,13 @@ Lua CJSON provides fast, standards compliant JSON support for Lua.
24 24
25 25
26%build 26%build
27make %{?_smp_mflags} CFLAGS="%{optflags}" LUA_INCLUDE_DIR="%{_includedir}" 27make %{?_smp_mflags} CFLAGS="%{optflags}" CJSON_CFLAGS="-DUSE_POSIX_USELOCALE" \
28 LUA_INCLUDE_DIR="%{_includedir}"
28 29
29 30
30%install 31%install
31rm -rf "$RPM_BUILD_ROOT" 32rm -rf "$RPM_BUILD_ROOT"
32make install DESTDIR="$RPM_BUILD_ROOT" LUA_LIB_DIR="%{lualibdir}" 33make install DESTDIR="$RPM_BUILD_ROOT" LUA_MODULE_DIR="%{lualibdir}"
33 34
34 35
35%clean 36%clean