Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile.am:16: but option 'subdir-objects' is disabled #5

Open
cryptozeny opened this issue Jul 27, 2018 · 2 comments
Open

Makefile.am:16: but option 'subdir-objects' is disabled #5

cryptozeny opened this issue Jul 27, 2018 · 2 comments

Comments

@cryptozeny
Copy link
Member

cryptozeny commented Jul 27, 2018

build is ok and everything works well and you can ignore this warning.

when i run ./autogen.sh. it reported by another user.

$ ./autogen.sh 
Makefile.am:16: warning: source file 'yespower/yespower.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
Makefile.am:16: warning: source file 'yespower/sha256.c' is in a subdirectory,
Makefile.am:16: but option 'subdir-objects' is disabled

there are 2 options to fix

  • a) adding subdir-objects to configure.ac like this
AM_INIT_AUTOMAKE([gnu subdir-objects])
  • b) adding AUTOMAKE_OPTIONS = subdir-objects to Makefile.am
AUTOMAKE_OPTIONS = subdir-objects

but i don't like these because these methods modifies too many other files ie: S and S.orig.

any advise?

@cryptozeny
Copy link
Member Author

@macchky @bitzeny sorry to bother you, but i hope you have some idea about this 😅

@MohamedFathallah9
Copy link

what does those 2 options do? I'm having the same problem after using autoreconf -i
I want to know how does these messages impact my work please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants