Comments (3)
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.
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.
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)
- The border offset of the Textbox component in Lua is incorrect in the latest submission. HOT 2
- Request : update iOS app HOT 1
- (macOS) HTTP Error 600: Internal Client Error HOT 1
- add exe HOT 3
- .apk on f droid HOT 2
- custom android icon theming HOT 1
- FIGH health can go negative HOT 1
- I want to make multi-gpu accelerated parallel TPT HOT 3
- stamp error HOT 4
- Why Lithium does not conduct electricity? HOT 2
- E Clone HOT 2
- curl with mbedtls not working in my project,want some help ^_^ HOT 11
- Glue HOT 1
- Adding a link to the contribution guide on the github page HOT 4
- OPS savefiles (palette key) break BSON specification, preventing interoperability HOT 8
- Nvm this accidental wrong place HOT 1
- PSP 3000 powdersandbox version? HOT 1
- multi screen communication
- macOS Snapshots aren't notarized HOT 1
- Steam release? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from the-powder-toy.