include files for cgxCADTools

Mark Brethen mark.brethen at gmail.com
Mon Aug 8 17:04:18 UTC 2022


Well, that didn’t work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log
Type: application/octet-stream
Size: 117764 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220808/ce12a28f/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile
Type: application/octet-stream
Size: 3517 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220808/ce12a28f/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-FbdReader-build.diff
Type: application/octet-stream
Size: 2516 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220808/ce12a28f/attachment-0005.obj>
-------------- next part --------------


Mark Brethen
mark.brethen at gmail.com



> On Aug 8, 2022, at 11:22 AM, Mark Brethen <mark.brethen at gmail.com> wrote:
> 
> The makefile only sets cc, not c++. If I remove -lstc++ from LIBS, then I need to add it to the portfile using LDFLAGS. The Makefile uses LFLAGS, which I don’t want to override. Should I add LDFLAGS to MAIN, like so:
> 
> $(MAIN): $(OBJS) 
> 	$(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS) $(LDFLAGS)
> 
> <Makefile>
> 
> 
> 
> 
> 
> Mark Brethen
> mark.brethen at gmail.com
> 
> 
> 
>> On Aug 8, 2022, at 11:10 AM, Joshua Root <jmr at macports.org> wrote:
>> 
>> That's a completely different thing. The language standard is selected by -std, the stdlib implementation is selected by -stdlib, and linking to a stdlib directly (as -lstdc++ does) is usually a bug since the C++ compiler will implicitly add the appropriate stdlib when linking.
>> 
>> - Josh
>> 
>> On 2022-8-9 01:16 , Mark Brethen wrote:
>>> There is also -lstdc++, I thought those should be set in the Portfile. Doesn’t macports-clang have its own standard?
>>> Mark Brethen
>>> mark.brethen at gmail.com <mailto:mark.brethen at gmail.com>
>>>> On Aug 7, 2022, at 7:22 PM, Ryan Schmidt <ryandesign at macports.org <mailto:ryandesign at macports.org>> wrote:
>>>> 
>>>> In fact, the Makefile already had -std=c++11, but your patchfile removed it. So don't remove it.
>> 
> 



More information about the macports-dev mailing list