Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile does not work on Debian/Sid #9

Open
bstarynk opened this issue Sep 27, 2019 · 0 comments
Open

Makefile does not work on Debian/Sid #9

bstarynk opened this issue Sep 27, 2019 · 0 comments

Comments

@bstarynk
Copy link

bstarynk commented Sep 27, 2019

The shipped Makefile does not work well on Debian/Sid/x86-64

The following patch (w.r.t. commit 2dc7eb2 )

diff --git a/Makefile b/Makefile
index 9090b8b..c9ac8d2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CC      = cc
+CC      = gcc
 LD      = $(CC)
 OS      = $(shell uname)
 GUILE_VERSION ?= 2.2
@@ -6,13 +6,14 @@ GUILE_INCLUDE = $(OS)
 GUILE_INCLUDE := $(GUILE_INCLUDE:Linux=/usr/include/guile/$(GUILE_VERSION))
 GUILE_INCLUDE := $(GUILE_INCLUDE:$(OS)=/usr/local/include/guile/$(GUILE_VERSION))
 
-CFLAGS  = -fPIC -Os
+CFLAGS  = -fPIC -O2 -g
 CFLAGS += -Wall
 CFLAGS += -I$(GUILE_INCLUDE) -I/usr/local/include -pthread
 LDFLAGS = -L/usr/local/lib -pthread -lguile-$(GUILE_VERSION) -lgc
+#LDFLAGS = -L/usr/local/lib -pthread -lguile -lgc
 CFLAGS += -I/usr/X11R6/include
 LDFLAGS += -L/usr/X11R6/lib -lxcb
 
 
 all:
-	$(CC) $(CFLAGS) $(LDFLAGS) Xlambda.c -o Xlambda
+	$(CC) $(CFLAGS) Xlambda.c $(LDFLAGS) -o Xlambda

to it corrects that issue.

Thanks

--
Basile Starynkevitch http://starynkevitch.net/Basile/
Bourg La Reine, France basile@starynkevitch.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant