Stuart Henderson <[email protected]> writes:
> On 2021/12/23 02:01, Klemens Nanni wrote:
>> CVSROOT: /cvs
>> Module name: ports
>> Changes by: [email protected] 2021/12/23 02:01:11
>>
>> Log message:
>> Import graphics/qr-code-generator 1.7.0
>>
>> Input OK op
>> ---
>> High-quality QR Code generator library in Java, TypeScript/JavaScript,
>> Python, Rust, C++, C.
>>
>> This project aims to be the best, clearest QR Code generator library in
>> multiple languages. The primary goals are flexible options and absolute
>> correctness. Secondary goals are compact implementation size and good
>> documentation comments.
>>
>> This package only contains libraries for C++ and C.
>>
>> Status:
>>
>> Vendor Tag: kn
>> Release Tags: kn_20211223
>>
>> N ports/graphics/qr-code-generator/Makefile
>> N ports/graphics/qr-code-generator/distinfo
>> N ports/graphics/qr-code-generator/pkg/DESCR
>> N ports/graphics/qr-code-generator/pkg/PLIST
>>
>> No conflicts created by this import
>>
>
> Broken on i386:
Woops, during one of the iteration the first -fPIC was accidentally
dropped
Index: Makefile
===================================================================
RCS file: /home/cvs/ports/graphics/qr-code-generator/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile 6 Jan 2022 00:07:44 -0000 1.3
+++ Makefile 9 Jan 2022 19:37:29 -0000
@@ -29,7 +29,7 @@ SONAME_C = libqrcodegen.so.${LIBqrcodeg
SONAME_CPP = libqrcodegencpp.so.${LIBqrcodegen_VERSION}
do-build:
- cd ${WRKSRC}/c && PATH=${PORTPATH} ${CC} ${CFLAGS} -shared \
+ cd ${WRKSRC}/c && PATH=${PORTPATH} ${CC} ${CFLAGS} -shared -fPIC \
-Wl,-soname,${SONAME_C} -o ${WRKBUILD}/${SONAME_C} qrcodegen.c
cd ${WRKSRC}/cpp && PATH=${PORTPATH} ${CXX} ${CXXFLAGS} -shared -fPIC \
-Wl,-soname,${SONAME_CPP} -o ${WRKBUILD}/${SONAME_CPP} qrcodegen.cpp