Skip to content

Commit

Permalink
so/Makefile: consider different ld parameter in 32/64bit arch
Browse files Browse the repository at this point in the history
  • Loading branch information
holishing committed Nov 29, 2018
1 parent b3722b6 commit ca4514f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions so/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ EXE = so
.c.x: ; $(CPROTO) -o $*.x $*.c
.c.ln: ; lint -abhi $*.c

.if $(OPSYS) == "FreeBSD"
.if $(ARCHI)=="64"
.if $(OPSYS) == "FreeBSD"
.o.so: ; ld -G $*.o -o $*.so -L../lib -ldao -melf_i386_fbsd
.else
.o.so: ; ld -G $*.o -o $*.so -L../lib -ldao -melf_i386
.endif
.endif #OPSYS
.endif #ARCHI

all:
@$(MAKE) CC=$(CC) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" $(EXE)
Expand Down

0 comments on commit ca4514f

Please sign in to comment.