[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Use -fPIC when compiling lua
- From: Aki Tuomi <cmouse@...>
- Date: Tue, 16 Dec 2014 09:54:34 +0200
Please modify your Makefile for lua to use -fPIC. This is required to link
static LUA library to any other stuff that wants to build position
independent code.
Kind regards,
Aki Tuomi
>From 27d18f6aa78de0257f1e1764fc48ad45fab83573 Mon Sep 17 00:00:00 2001
From: Aki Tuomi <cmouse@desteem.org>
Date: Tue, 16 Dec 2014 09:49:43 +0200
Subject: [PATCH] Use fPIC
---
src/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile b/src/Makefile
index 7b4b2b7..a5ec275 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,7 +7,7 @@
PLAT= none
CC= gcc
-CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
+CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) -fPIC
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)
--
1.9.1