In two of my packages I have a macro where the body depends on a variable defined in a defcustom form.
When installing the packages from Melpa, the byte-compilation ends with:
Error: Symbol's value as variable is void: my-defcustom-variable
Then, manually byte-compiling the file by opening it in a buffer works.
I tried with an autoload cookie but still have the same behavior.
I'm missing something important here.