mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
2c0639ef74
Alpha's cc doesn't have -soname option.
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
--- Makefile.orig Sun Mar 23 03:02:53 1997
|
|
+++ Makefile Wed Sep 30 23:28:35 1998
|
|
@@ -1,14 +1,17 @@
|
|
# $Id: patch-aa,v 1.3 1998/10/01 06:09:01 steve Exp $
|
|
DIST = shhcards
|
|
VERMAJ = 1
|
|
-VERMIN = 0
|
|
-VERPAT = 3
|
|
-VERSION = $(VERMAJ).$(VERMIN).$(VERPAT)
|
|
+VERMIN = 1
|
|
+ifeq ($(PORTOBJFORMAT),elf)
|
|
+VERSION = $(VERMAJ)
|
|
+else
|
|
+VERSION = $(VERMAJ).$(VERMIN)
|
|
+endif
|
|
|
|
###########################################################################
|
|
|
|
# Define SHARED as 1 for Linux shared ELF library
|
|
-#SHARED = 1
|
|
+SHARED = 1
|
|
|
|
ifeq ($(SHARED),1)
|
|
LIBTARGET = lib$(DIST).so.$(VERSION)
|
|
@@ -28,8 +31,8 @@
|
|
INSTALL = install -m 644
|
|
MKDIRP = install -d -m 755
|
|
|
|
-CC = gcc
|
|
-OPTIM = -O2
|
|
+#CC = gcc
|
|
+OPTIM = $(CFLAGS)
|
|
|
|
###########################################################################
|
|
|
|
@@ -87,7 +90,11 @@
|
|
|
|
$(LIBTARGET): $(LIBOBJS)
|
|
ifeq ($(SHARED),1)
|
|
- $(CC) -shared -Wl,-soname,$(LIBTARGETSOMAJ) -o $(LIBTARGET) $(LIBOBJS)
|
|
+ifeq ($(PORTOBJFORMAT),elf)
|
|
+ $(CC) -shared -Wl,-soname,$(LIBTARGET) -o $(LIBTARGET) $(LIBOBJS)
|
|
+else
|
|
+ $(CC) -shared -o $(LIBTARGET) $(LIBOBJS)
|
|
+endif
|
|
else
|
|
ar rcs $(LIBTARGET) $(LIBOBJS)
|
|
endif
|