Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449520 - dev-lang/luajit-2.0.0_beta7 does not respect CFLAGS in linking command
Summary: dev-lang/luajit-2.0.0_beta7 does not respect CFLAGS in linking command
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rafael Martins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-31 21:58 UTC by Julian Ospald
Modified: 2013-01-01 00:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Ospald 2012-12-31 21:58:51 UTC
gcc  -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o lj_opt_split_dyn.o lj_mcode_dyn.o lj_snap_dyn.o lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o lj_ccall_dyn.o lj_carith_dyn.o lj_clib_dyn.o lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o lib_init_dyn.o -lm -ldl  


CFLAGS missing from linking command see bug 446281#c3 and https://www.gnu.org/prep/standards/html_node/Command-Variables.html#Command-Variables
Comment 1 Julian Ospald 2012-12-31 22:49:36 UTC
solution:

-	# removing strip
-	sed -i -e '/$(Q)$(TARGET_STRIP)/d' src/Makefile \
-		|| die "failed to remove forced strip"
+	# removing strip and respect CFLAGS
+	sed -i -e '/$(Q)$(TARGET_STRIP)/d' \
+		-e "s/^LDOPTIONS=/LDOPTIONS= ${CFLAGS}/" \
+		src/Makefile || die "failed to remove forced strip"
Comment 2 Julian Ospald 2013-01-01 00:06:48 UTC
minor issue according to QA, wontfix unless someone reports an actual problem