Skip to content

Commit

Permalink
build: use c++11
Browse files Browse the repository at this point in the history
Signed-off-by: Noah Watkins <[email protected]>
  • Loading branch information
dotnwat committed May 9, 2017
1 parent 9080a69 commit cd12dbe
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ missing
*.o
docs
m4
compile
lua-rados.rockspec
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AC_PREREQ(2.59)

AC_INIT([lua-rados], [0.0.1], [[email protected]])
AC_INIT([lua-rados], [0.0.2], [[email protected]])

AC_CONFIG_MACRO_DIR([m4])

Expand Down
20 changes: 20 additions & 0 deletions rockspecs/lua-rados-0.0.2-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package="lua-rados"
version="0.0.2-1"
source = {
url = "https://github.com/noahdesu/lua-rados/archive/v0.0.2.tar.gz",
dir = "lua-rados-0.0.2"
}
description = {
summary = "Lua bindings to RADOS",
detailed = [[]],
homepage = "http://github.com/noahdesu/lua-rados/",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "command",
build_command = "./bootstrap.sh && LUA=$(LUA) CPPFLAGS=-I$(LUA_INCDIR) ./configure --prefix=$(PREFIX) --libdir=$(LIBDIR) --datadir=$(LUADIR) && make clean && make",
install_command = "make install"
}

3 comments on commit cd12dbe

@Password2008
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lua-rados.rockspec
config.status: executing depfiles commands
config.status: executing libtool commands
test -z "rados.la" || rm -f rados.la
rm -f ./so_locations
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
CXX rados_la-lua_rados.lo
CXXLD rados.la
make install
make[1]: Entering directory `/tmp/luarocks_luarocks-source-lua-rados-0.0.2-1-W1GwhP/lua-rados-0.0.2'
/bin/mkdir -p '/usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib'
/bin/sh ./libtool --mode=install /bin/install -c rados.la '/usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib'
libtool: install: /bin/install -c .libs/rados.so /usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib/rados.so
libtool: install: /bin/install -c .libs/rados.lai /usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib/rados.la
libtool: install: /bin/install -c .libs/rados.a /usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib/rados.a
libtool: install: chmod 644 /usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib/rados.a
libtool: install: ranlib /usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib/rados.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin:/usr/local/openresty/luajit//bin:/sbin" ldconfig -n /usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib

Libraries have been installed in:
/usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:

  • add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  • add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  • use the `-Wl,-rpath -Wl,LIBDIR' linker flag
  • have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

make[1]: Nothing to be done for install-data-am'. make[1]: Leaving directory /tmp/luarocks_luarocks-source-lua-rados-0.0.2-1-W1GwhP/lua-rados-0.0.2'
lua-rados 0.0.2-1 is now installed in /usr/local/openresty/luajit (license: MIT)

[root@xxy-sto-ceph-cephgw-ngx-1 /]#
[root@xxy-sto-ceph-cephgw-ngx-1 /]# ls -lt /usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib
ls: cannot access /usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados/0.0.2-1/lib: No such file or directory

@Password2008
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I installed successful by luarocks, nothing errors . but ,there is no lib in dir "/usr/local/openresty/luajit/lib/luarocks/rocks/lua-rados"

@dotnwat
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I'll see if i can recreate this. Can you post that in a new issue?

Please sign in to comment.