Author Topic: A problem with Gnu makefile  (Read 86 times)

Offline straybit

  • Member
  • ***
  • Posts: 54
  • Karma: 9
  • New To PeppermintOS
    • View Profile
    • Middleton Post 39
  • Peppermint version(s): 10
A problem with Gnu makefile
« on: October 11, 2020, 12:31:19 pm »
I have this make file
Spoiler (click here to view / hide)
[close]
the error is:
Quote
/usr/bin/ld: cannot find -lbrlib.a
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'gnusrch' failed
make: *** [gnusrch] Error 1
I've tried '-lbrlib.a' and '-llibbrlib.a'
'libbrlib.a' is in 'LDIR = ~/Data/bin/lib/'
and note that this a static build:
CFLAGS = -Wall -I$(IDIR) -L$(LDIR) -lbrlib.a -static
Even when I removed the erroring file, the next one would error.
Given the directory structure for this
Code: [Select]
/home/bruce/Data/bin/src/mysrchand libbrlib.a is in
Code: [Select]
/home/bruce/Data/bin/libIt is obvious that I'm doing something wrong but I dont know what it could be.  Any ideas?
Bruce