From bd994cd7976ac93c530792e3c0d6f45a33c757b4 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Thu, 8 Dec 2011 20:57:12 +1030 Subject: 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). --- lua-cjson.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lua-cjson.spec') 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. %build -make %{?_smp_mflags} CFLAGS="%{optflags}" LUA_INCLUDE_DIR="%{_includedir}" +make %{?_smp_mflags} CFLAGS="%{optflags}" CJSON_CFLAGS="-DUSE_POSIX_USELOCALE" \ + LUA_INCLUDE_DIR="%{_includedir}" %install rm -rf "$RPM_BUILD_ROOT" -make install DESTDIR="$RPM_BUILD_ROOT" LUA_LIB_DIR="%{lualibdir}" +make install DESTDIR="$RPM_BUILD_ROOT" LUA_MODULE_DIR="%{lualibdir}" %clean -- cgit v1.2.3-55-g6feb