hoelzro / pluto

Heavy Duty Persistence for Lua
http://luaforge.net/projects/pluto/
81 stars 11 forks source link

Update makefile.linux #12

Open lilith opened 10 years ago

lilith commented 10 years ago

GCC broke compatibility by changing the default linking behavior to --as-needed. We have to switch it back or math breaks.

cc -g3 -Wall -Wconversion -ansi -pedantic   -c -o pptest.o pptest.c
pptest.c: In function 'LUAF_boxboolean':
pptest.c:41:22: warning: conversion to 'char' from 'int' may alter its value [-Wconversion]
cc -rdynamic -o pptest pptest.o -lm -ldl -llua
/usr/local/lib/liblua.a(lvm.o): In function `Arith':
lvm.c:(.text+0x485): undefined reference to `pow'
lvm.c:(.text+0x4b4): undefined reference to `floor'
/usr/local/lib/liblua.a(lvm.o): In function `luaV_execute':
lvm.c:(.text+0x22f1): undefined reference to `floor'
lvm.c:(.text+0x240e): undefined reference to `pow'

like so.

hoelzro commented 10 years ago

Hi Nathanael,

I am no longer maintainer of the Pluto project. All fixes should be directed to Stefan Reich.

lilith commented 10 years ago

I wasn't able to find his fork of the repo. Could you share the URL?

hoelzro commented 10 years ago

I don't know if he even has a GitHub account, and his site is down. You can try searching the Lua mailing list to find his e-mail address...