From 4375316b4385cbc6c7268a547c3aa0415dc034ee Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 20 May 2012 23:26:14 -0300 Subject: Fix stat flag used by FreeBSD. Closes #72. --- src/luarocks/cfg.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 6b0d14a9..56a9a965 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua @@ -345,6 +345,10 @@ if detected.cygwin then defaults.variables.LIBFLAG = "-shared" end +if detected.bsd then + defaults.variables.STATFLAG = "-f '%Op'" +end + if detected.macosx then defaults.external_lib_extension = "dylib" defaults.arch = "macosx-"..proc @@ -352,9 +356,6 @@ if detected.macosx then defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10.3; gcc" defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10.3; gcc" defaults.variables.LIBFLAG = "-bundle -undefined dynamic_lookup -all_load" -end - -if detected.bsd then defaults.variables.STATFLAG = "-f '%A'" end @@ -378,7 +379,6 @@ end if detected.openbsd then defaults.arch = "openbsd-"..proc defaults.platforms = {"unix", "bsd", "openbsd"} - defaults.variables.STATFLAG = "-f '%Op'" end if detected.solaris then -- cgit v1.2.3-55-g6feb