pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/56702: math/liblinear fails to compile under Solaris 10
>Number: 56702
>Category: pkg
>Synopsis: math/liblinear fails to compile under Solaris 10
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 10 19:55:00 +0000 2022
>Originator: Claes Nästén
>Release: trunk 2022-02-10
>Organization:
>Environment:
SunOS 5.10 sun4v sparc SUNW,SPARC-Enterprise-T2000
>Description:
math/liblinear fails to compile for me under Solaris 10, using GCC 8.4 and mksh.
libtool fails to figure out how to compile and the patch for liblinear making it use libtool does not specify --tag.
Works just fine with updated patches with provided --tag.
>How-To-Repeat:
Build math/liblinear on Solaris 10
>Fix:
diff --git a/math/liblinear/patches/patch-Makefile b/math/liblinear/patches/patch-Makefile
index 0e6e938e410..bcb289958ed 100644
--- a/math/liblinear/patches/patch-Makefile
+++ b/math/liblinear/patches/patch-Makefile
@@ -25,26 +25,26 @@ Add support for LDFLAGS.
- fi; \
- $(CXX) $${SHARED_LIB_FLAG} linear.o newton.o blas/blas.a -o liblinear.so.$(SHVER)
+lib: linear.lo newton.lo $(LIBS)
-+ ${LIBTOOL} --mode=link $(CXX) -o liblinear.la $(LDFLAGS) $> -rpath ${PREFIX}/lib -version-info ${SHVER}:0
++ ${LIBTOOL} --mode=link --tag=CXX $(CXX) -o liblinear.la $(LDFLAGS) $> -rpath ${PREFIX}/lib -version-info ${SHVER}:0
-train: newton.o linear.o train.c blas/blas.a
- $(CXX) $(CFLAGS) -o train train.c newton.o linear.o $(LIBS)
+train: newton.lo linear.lo train.c $(LIBS)
-+ ${LIBTOOL} --mode=link $(CXX) $(CFLAGS) -o train $(LDFLAGS) $>
++ ${LIBTOOL} --mode=link --tag=CXX $(CXX) $(CFLAGS) -o train $(LDFLAGS) $>
-predict: newton.o linear.o predict.c blas/blas.a
- $(CXX) $(CFLAGS) -o predict predict.c newton.o linear.o $(LIBS)
+predict: newton.lo linear.lo predict.c $(LIBS)
-+ ${LIBTOOL} --mode=link $(CXX) $(CFLAGS) -o predict $(LDFLAGS) $>
++ ${LIBTOOL} --mode=link --tag=CXX $(CXX) $(CFLAGS) -o predict $(LDFLAGS) $>
-newton.o: newton.cpp newton.h
+newton.lo: newton.cpp newton.h
-+ ${LIBTOOL} --mode=compile \
++ ${LIBTOOL} --mode=compile --tag=CXX \
$(CXX) $(CFLAGS) -c -o newton.o newton.cpp
-linear.o: linear.cpp linear.h
+linear.lo: linear.cpp linear.h
-+ ${LIBTOOL} --mode=compile \
++ ${LIBTOOL} --mode=compile --tag=CXX \
$(CXX) $(CFLAGS) -c -o linear.o linear.cpp
-blas/blas.a: blas/*.c blas/*.h
diff --git a/math/liblinear/patches/patch-blas_Makefile b/math/liblinear/patches/patch-blas_Makefile
index 83d6048a0d3..2d6f03c5f47 100644
--- a/math/liblinear/patches/patch-blas_Makefile
+++ b/math/liblinear/patches/patch-blas_Makefile
@@ -13,7 +13,7 @@ Add support for LDFLAGS.
- $(AR) blas.a $(FILES)
- $(RANLIB) blas.a
+blas: $(FILES:.o=.lo) $(HEADERS)
-+ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libblas.la $(LDFLAGS) $(FILES:.o=.lo)
++ $(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o libblas.la $(LDFLAGS) $(FILES:.o=.lo)
clean:
- rm -f *.o
@@ -24,6 +24,6 @@ Add support for LDFLAGS.
- $(CC) $(CFLAGS) -c $*.c
+.SUFFIXES: .lo
+.c.lo:
-+ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
++ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c $<
Home |
Main Index |
Thread Index |
Old Index