Skip to content

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

Description

@cryptozeny

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions