Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lua-resty-qrencode
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiming
lua-resty-qrencode
Commits
40cb4668
Commit
40cb4668
authored
Jul 18, 2017
by
jiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix library linking error
parent
76233e39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Makefile
+8
-8
No files found.
Makefile
View file @
40cb4668
...
...
@@ -4,16 +4,16 @@ version=0.1
name
=
lua-resty-qrencode
LUA_VERSION
=
5.1
CC
=
gcc
# See http://lua-users.org/wiki/BuildingModules for platform specific
# details.
## Linux/BSD
PREFIX
?=
/usr/local/openresty
#LDFLAGS += -shared
PREFIX
?=
/usr/local/openresty
LDFLAGS
+=
-shared
-lpng
-lqrencode
## OSX (Macports)
#PREFIX ?= /opt/local
LDFLAGS
+=
-bundle
-undefined
dynamic_lookup
#
LDFLAGS += -bundle -undefined dynamic_lookup
## find your luajit path
LUA_INCLUDE_DIR
?=
$(PREFIX)
/luajit/include/luajit-2.1
...
...
@@ -22,9 +22,9 @@ LUA_LIB_DIR ?= $(PREFIX)/lualib
# Some versions of Solaris are missing isinf(). Add -DMISSING_ISINF to
# CFLAGS to work around this bug.
#
CFLAGS ?= -g -Wall -pedantic -fno-inline
CFLAGS
?=
-g
-O3
-Wall
-pedantic
override
CFLAGS
+=
-fpic
-I
$(LUA_INCLUDE_DIR)
-lpng
-lqrencode
CFLAGS
?=
-g
-Wall
-pedantic
-fno-inline
#
CFLAGS ?= -g -O3 -Wall -pedantic
override
CFLAGS
+=
-fpic
-I
$(LUA_INCLUDE_DIR)
INSTALL
?=
install
...
...
@@ -33,7 +33,7 @@ INSTALL ?= install
all
:
qrencode.so
qrencode.so
:
qrencode.c
$(CC)
$(
LDFLAGS)
$(CFLAGS)
-o
$@
$^
$(CC)
$(
CFLAGS)
-o
$@
$^
$(LDFLAGS)
install
:
$(INSTALL)
-d
$(LUA_LIB_DIR)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment