Coder Social home page Coder Social logo

Comments (2)

glysbaysb avatar glysbaysb commented on June 14, 2024

The patch being:

$ cat 0001-link-order-matters.patch 
From 1cce2cfd176414770f3c2d6cf6920562c77c508e Mon Sep 17 00:00:00 2001
From: Geert Ijewski <[email protected]>
Date: Tue, 21 Apr 2020 19:04:25 +0200
Subject: [PATCH] link order matters

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

diff --git a/Makefile b/Makefile
index 0964497..72f2f50 100644
--- a/Makefile
+++ b/Makefile
@@ -14,12 +14,12 @@ libschrift.a: schrift.o
 schrift.o: schrift.h
 
 sftdemo: sftdemo.o libschrift.a
-       $(LD) $(LDFLAGS) $< -o $@ -L$(X11LIB) -L. -lX11 -lXrender -lschrift
+       $(LD) $(LDFLAGS) $< -o $@ -L$(X11LIB) -L. -lX11 -lXrender -lschrift -lm
 sftdemo.o: sftdemo.c schrift.h arg.h
        $(CC) -c $(CFLAGS) $< -o $@ $(CPPFLAGS) -I$(X11INC)
 
 stress: stress.o libschrift.a
-       $(LD) $(LDFLAGS) $< -o $@ -L. -lschrift
+       $(LD) $(LDFLAGS) $< -o $@ -L. -lschrift -lm
 stress.o: stress.c schrift.h arg.h
        $(CC) -c $(CFLAGS) $< -o $@ $(CPPFLAGS)
 
-- 
2.20.1

from libschrift.

tomolt avatar tomolt commented on June 14, 2024

Interesting. I'm basically using the same toolchain but I never hit this problem.
I don't have time to do this right now, but I'll apply the patch to master ASAP.
Thank you very much!

from libschrift.

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.