View | Details | Raw Unified | Return to bug 199480 | Differences between
and this patch

Collapse All | Expand All

(-)lua52/Makefile (-1 / +3 lines)
Lines 28-34 Link Here
28
CPPFLAGS+=	-I${LOCALBASE}/include
28
CPPFLAGS+=	-I${LOCALBASE}/include
29
LDFLAGS+=	-lm -pthread
29
LDFLAGS+=	-lm -pthread
30
BUILD_WRKSRC=	${WRKSRC}/src
30
BUILD_WRKSRC=	${WRKSRC}/src
31
MAKE_ARGS+=	MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX" \
31
MAKE_ARGS+=	MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX \
32
			-DLUA_USER_H='<stdlib.h>' \
33
			-D'luai_makeseed()=cast(unsigned int, arc4random())'" \
32
		MYLDFLAGS="${LDFLAGS}" \
34
		MYLDFLAGS="${LDFLAGS}" \
33
		MYLIBS="-Wl,-E -L${LOCALBASE}/lib -ledit" \
35
		MYLIBS="-Wl,-E -L${LOCALBASE}/lib -ledit" \
34
		CC="${CC}" \
36
		CC="${CC}" \
(-)lua53/Makefile (-1 / +4 lines)
Lines 28-34 Link Here
28
CPPFLAGS+=	-I${LOCALBASE}/include
28
CPPFLAGS+=	-I${LOCALBASE}/include
29
LDFLAGS+=	-lm -pthread
29
LDFLAGS+=	-lm -pthread
30
BUILD_WRKSRC=	${WRKSRC}/src
30
BUILD_WRKSRC=	${WRKSRC}/src
31
MAKE_ARGS+=	MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX" \
31
MAKE_ARGS+=	MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX \
32
			-D__BSD_VISIBLE \
33
			-DLUA_USER_H='<stdlib.h>' \
34
			-D'luai_makeseed()=cast(unsigned int, arc4random())'" \
32
		MYLDFLAGS="${LDFLAGS}" \
35
		MYLDFLAGS="${LDFLAGS}" \
33
		MYLIBS="-Wl,-E -L${LOCALBASE}/lib -ledit" \
36
		MYLIBS="-Wl,-E -L${LOCALBASE}/lib -ledit" \
34
		CC="${CC}" \
37
		CC="${CC}" \
(-)lua53/files/patch-src__Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
-CC= gcc -std=gnu99
7
-CC= gcc -std=gnu99
8
-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
8
-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
9
+CC?= gcc -std=gnu99
9
+CC?= gcc -std=gnu99
10
+CFLAGS?= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
10
+CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
11
 LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
11
 LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
12
 LIBS= -lm $(SYSLIBS) $(MYLIBS)
12
 LIBS= -lm $(SYSLIBS) $(MYLIBS)
13
 
13
 

Return to bug 199480