Aria2: Make automake 1.14 shut-up about `subdir-objects`

Created on 22 Aug 2013  路  4Comments  路  Source: aria2/aria2

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.
src/Makefile.am:263: warning: source file 'android/mips-ftruncate64.S' is in a subdirectory,
src/Makefile.am:263: but option 'subdir-objects' is disabled
src/Makefile.am:267: warning: source file 'android/x86-ftruncate64.S' is in a subdirectory,
src/Makefile.am:267: but option 'subdir-objects' is disabled

I think AUTOMAKE_OPTIONS = subdir-objects in src/Makefile.am is the way to go.

Most helpful comment

add configure.ac:
AM_INIT_AUTOMAKE([subdir-objects])

should do the trick.

All 4 comments

add configure.ac:
AM_INIT_AUTOMAKE([subdir-objects])

should do the trick.

Agreed

@tatsuhiro-t

Agreed

On AUTOMAKE_OPTIONS or AM_INIT_AUTOMAKE?

I didn't see the comment carefully, so I meant AUTOMAKE_OPTIONS, but I'm fine with AM_INIT_AUTOMAKE too, as long as it works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

austin987 picture austin987  路  3Comments

sky93 picture sky93  路  3Comments

minimax4233 picture minimax4233  路  3Comments

gatl picture gatl  路  4Comments

nicolasxu picture nicolasxu  路  4Comments