From: Lonnie A. <li...@lo...> - 2021-05-07 02:08:53
|
> On May 6, 2021, at 5:50 PM, Luigi Porto <ope...@gm...> wrote: > > Dear Astlinux Devs, > > After a few years of inactivity I would like to recompile Astlinux but I would have to pass a couple of CFLAGS to Asterisk. > > Specifically: CFLAGS="-DENABLE_SRTP_AES_GCM -DENABLE_SRTP_AES_256" > From: https://usecallmanager.nz/patching-asterisk.html > What is the right place where I can put them? Which line of asterisk.mk? Hi Luigi, At Line #246 ... https://github.com/astlinux-project/astlinux/blob/master/package/asterisk/asterisk.mk#L246 -- - CFLAGS='$(TARGET_CFLAGS)' \ + CFLAGS='$(TARGET_CFLAGS) -DENABLE_SRTP_AES_GCM -DENABLE_SRTP_AES_256' \ -- Also note if you need to add a patch, your "package/asterisk/patches/" patch filename must begin with "asterisk-nn-" where nn is 13 or 16, for example: -- asterisk-16-cisco-usecallmanager-16.17.0.patch -- Test your patch by... If asterisk is already built (else skip), un-build it: -- make asterisk-clean make asterisk-dirclean -- Apply the asterisk patches without building: -- make asterisk-patch -- If patches apply, dirclean and build asterisk: -- make asterisk-dirclean make asterisk -- Good luck. Lonnie |