Git Product home page Git Product logo

Comments (3)

elad661 avatar elad661 commented on May 3, 2024

Patch part 2:

From 114f3c2e69ab64f86ce94f5d66f70a9ac4f0ae58 Mon Sep 17 00:00:00 2001
From: Elad Alfassa <[email protected]>
Date: Mon, 7 May 2012 18:45:56 +0300
Subject: [PATCH 2/2] Compile on Fedora (part 2)

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index b2d4570..161877a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ OBJS := $(patsubst src/%.c,build/obj/%.o,$(SOURCES))

 CFLAGS := -w -std=c99 -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DGRAVFFT -Iincludes/ -D_GNU_SOURCE
 OFLAGS := -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations
-LFLAGS := -lpthread -lSDL -lfftw3f -lm -lbz2 -lX11 -llua5.1 -lrt
+LFLAGS := -lpthread -lSDL -lfftw3f -lm -lbz2 -lX11 -llua -lrt
 LFLAGS_X := -lm -lbz2 -lSDLmain
 LFLAGS_WIN := -lmingw32 -lgnurx -lws2_32 -lSDLmain -lpthread -lSDL -lfftw3f -lm -lbz2 -llua5.1
 MFLAGS_SSE3 := -march=native -DX86 -DX86_SSE3 -msse3
-- 
1.7.7.6

from the-powder-toy.

jacksonmj avatar jacksonmj commented on May 3, 2024

I agree, this is a bit annoying. But Debian based systems have the includes in a sub-directory (and probably use -llua5.1 as well). http://packages.debian.org/squeeze/i386/liblua5.1-0-dev/filelist

So although this would fix building on distros like Fedora, it would break it on others. At the moment the changes to the makefile are mentioned in https://powdertoy.co.uk/Wiki/W/Building_in_linux.html#Lua_errors

A better solution would be autoconf/cmake/whatever (I believe @savask is currently looking at autoconf).

from the-powder-toy.

elad661 avatar elad661 commented on May 3, 2024

I knew this patch will break it for other people, that's why I didn't send it as a pull request. It's here just as a reference for people who can't figure this out on their own :)

from the-powder-toy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.