Skip to content

Commit

Permalink
Append -o flag explicitely in Makefile.in, to fix the build with BSD …
Browse files Browse the repository at this point in the history
…Make. (#36)

Otherwise hash.o and blocks.o are not generated in the 'sha256' and
'sha512' directories and linking fails.
  • Loading branch information
fcambus authored Nov 5, 2023
1 parent 6eb6db2 commit 7966dbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ OBJS = $(PKGNAME).o jpegmarker.o misc.o @GNUGETOPT@ \
sha256/hash.o sha256/blocks.o \
sha512/hash.o sha512/blocks.o

.c.o:
$(CC) $(CFLAGS) -o $@ -c $<

$(PKGNAME): $(OBJS)
$(CC) $(CFLAGS) -o $(PKGNAME) $(OBJS) $(LDFLAGS) $(LIBS)

Expand Down

0 comments on commit 7966dbc

Please sign in to comment.