[erlang-questions] port driver naming

Max Lapshin max.lapshin@REDACTED
Wed Jun 26 02:58:05 CEST 2019


It would be a great idea!

Have one deb package for all architectures at once.

On Wed, Jun 26, 2019 at 12:17 AM Serge Aleynikov <serge@REDACTED>
wrote:

> When writing a port driver the "driver_name" field in the ErlDrvEntry
> structure is defined to match the name of the driver file.
>
> Is it possible to name the driver file differently from what's specified
> in the ErlDrvEntry?
>
> I have two architectures x86 and x64, and would like to distribute a
> prebuilt library with my application in the 32 and 64 bit flavors, and have
> the application choose the proper driver filename depending on the target
> architecture of the host machine.  For this reason I am wondering if it's
> possible to name a driver file as "myapp-x86" or "myapp-x64" with a driver
> name field containing "myapp".  Is that doable?
>
> Regards,
>
> Serge
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190626/636d466e/attachment.htm>


More information about the erlang-questions mailing list